MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Hendrik Brummermann
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 64: Line 64:
}
}
// iterate over all ExpandableFrames
// iterate over all ExpandableFrames
var ExpandableFrames = mw.util.$content.find( 'div.ExpandableFrame' );
var ExpandableFrames = jQuery( 'div.ExpandableFrame' );
// if more Expandable Bars found and not template namespace than Default: hide all
// if more Expandable Bars found and not template namespace than Default: hide all
Line 86: Line 86:
}
}
}
}
});




//================================================================================
// drop down menus

$(function(){
$("div.dropdownmenu ul li").hover(function(){
$(this).addClass("hover");
$('ul:first',this).css('visibility', 'visible');
}, function(){
$(this).removeClass("hover");
$('ul:first',this).css('visibility', 'hidden');
});
$("div.dropdownmenu ul li ul li:has(ul)").find("a:first").append(" » ");
});
});