diff --git a/web/javascript/jquery/jquery.transmenu.js b/web/javascript/jquery/jquery.transmenu.js index 0aef36bc3..45dea2639 100644 --- a/web/javascript/jquery/jquery.transmenu.js +++ b/web/javascript/jquery/jquery.transmenu.js @@ -310,7 +310,7 @@ if ( transMenuSettings.arrow_char ) { var arrow_markup = $("" + transMenuSettings.arrow_char + ''); // Mozilla float/position hack - if ($.browser.mozilla) { + if ($.browser.mozilla && +$.browser.version.replace(/\./g,'').slice(0,3) < 191) { arrow_markup.css('margin-top', '-13px'); } $('div.inner div.outerbox', this).before(arrow_markup); diff --git a/web/javascript/jquery/jquery.transmenu.min.js b/web/javascript/jquery/jquery.transmenu.min.js index e63811c8e..0d60ae7ac 100644 --- a/web/javascript/jquery/jquery.transmenu.min.js +++ b/web/javascript/jquery/jquery.transmenu.min.js @@ -23,8 +23,8 @@ return null;};var isChild=function(elem,childElem){var n=elem.firstChild;for(;n; return false;};return this.each(function(){if(window.Node&&Node.prototype&&!Node.prototype.contains){Node.prototype.contains=function(arg){return!!(this.compareDocumentPosition(arg)&16);};} if(!$(this).is('.trans_menu')){$(this).addClass('trans_menu');} $('ul',this).shadowBox();$(this).bind('closemenu',function(){clean();});var liElems=$(this).children('li');for(var j=0;jdiv').addClass('inner');if(transMenuSettings.arrow_char){var arrow_markup=$(""+transMenuSettings.arrow_char+'');if($.browser.mozilla){arrow_markup.css('margin-top','-13px');} +$(liElems).hover(mainHoverIn,mainHoverOut).addClass('main').find('>div').addClass('inner');if(transMenuSettings.arrow_char){var arrow_markup=$(""+transMenuSettings.arrow_char+'');if($.browser.mozilla&&+$.browser.version.replace(/\./g,'').slice(0,3)<191){arrow_markup.css('margin-top','-13px');} $('div.inner div.outerbox',this).before(arrow_markup);} $(this).wrap('
').after('
');});};$.fn.transMenu.setDefaults=function(o){$.extend(defaults,o);};$.fn.shadowBox=function(){return this.each(function(){var outer=$('
').get(0);if($(this).css('position')=='absolute'){$(outer).css({position:'relative',width:this.offsetWidth,height:this.offsetHeight});}else{$(outer).css('position','absolute');} $(this).addClass('innerBox').wrap(outer).before('
');});};$.fn.selectMenuItem=function(){if(this.find('span.selected').length==0){this.prepend($(""+transMenuSettings.selected_char+""));} -return this;};$.fn.deselectMenuItem=function(){return this.find('span.selected').remove();};$.fn.menuItemIsSelected=function(){return(this.find('span.selected').length>0);};$.fn.deselectMenuSiblings=function(){this.parent().find('span.selected').remove();this.selectMenuItem();return this;};})(jQuery); \ No newline at end of file +return this;};$.fn.deselectMenuItem=function(){return this.find('span.selected').remove();};$.fn.menuItemIsSelected=function(){return(this.find('span.selected').length>0);};$.fn.deselectMenuSiblings=function(){this.parent().find('span.selected').remove();this.selectMenuItem();return this;};})(jQuery);