source: extensions/gally/gally-default/js/gallyjs-ttm.min.js @ 10736

Last change on this file since 10736 was 10736, checked in by grum, 13 years ago

bug:2291 ; compatibility with piwigo 2.2

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/* file: gally-ttm.js - v1.4.0 | minified on 2011/05/01 with http://jscompress.com/ */
2var gallyTM=null;$(document).ready(function()
3{gallyTM=new GallyTM();});function GallyTM()
4{var sTip=null,initTips=function()
5{if(options.manageTips)
6{$('#menubar dl:not(#mbTags) dd [title]').not('.sTipOnTop, .sTipOnBottom, .sTipOnLeft, .sTipOnRight').addClass('sTipOnRight');sTip=new simpleTip();$('[title]').each(function()
7{tipPos=options.manageTipsPos;if($(this).hasClass('sTipOnTop')){tipPos='tipOnTop';}
8else if($(this).hasClass('sTipOnRight')){tipPos='tipOnRight';}
9else if($(this).hasClass('sTipOnLeft')){tipPos='tipOnLeft';}
10else if($(this).hasClass('sTipOnBottom')){tipPos='tipOnBottom';}
11switch(tipPos)
12{case'tipOnTop':sTip.doAction('add',this,{targetPos:'top-middle',tipPos:'bottom-middle',offsetY:14,arrowHeight:13,arrowWidth:17,drawArrow:true,arrowImgDir:options.themePath});break;case'tipOnRight':sTip.doAction('add',this,{targetPos:'middle-right',tipPos:'middle-left',offsetX:12,arrowHeight:17,arrowWidth:12,drawArrow:true,arrowImgDir:options.themePath});break;case'tipOnLeft':sTip.doAction('add',this,{targetPos:'middle-left',tipPos:'middle-right',offsetX:12,arrowHeight:17,arrowWidth:12,drawArrow:true,arrowImgDir:options.themePath});break;case'tipOnBottom':sTip.doAction('add',this,{targetPos:'bottom-middle',tipPos:'top-middle',offsetY:12,arrowHeight:12,arrowWidth:17,drawArrow:true,arrowImgDir:options.themePath});break;}});}};initTips();}
Note: See TracBrowser for help on using the repository browser.