From b3bd122108d39a6f4e8c475c387a0d84a48932f7 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 13 Jul 2009 14:03:17 +0000 Subject: [PATCH] (trunk clutch) #2272: Web UI list items do not "match" in FF 3.5 --- web/javascript/jquery/jquery.transmenu.js | 2 +- web/javascript/jquery/jquery.transmenu.min.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);