https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106315
Revision: 106315
Author: santhosh
Date: 2011-12-15 11:09:18 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Do not hide the menu if menu items are clicked.
Modified Paths:
--------------
trunk/extensions/WebFonts/resources/ext.webfonts.js
Modified: trunk/extensions/WebFonts/resources/ext.webfonts.js
===================================================================
--- trunk/extensions/WebFonts/resources/ext.webfonts.js 2011-12-15 11:05:52 UTC
(rev 106314)
+++ trunk/extensions/WebFonts/resources/ext.webfonts.js 2011-12-15 11:09:18 UTC
(rev 106315)
@@ -393,6 +393,9 @@
$( 'html' ).click( function() {
$menu.removeClass( 'open' );
} );
+ $menu.click( function( event ) {
+ event.stopPropagation();
+ } );
// Workaround for IE bug - ActiveX components like
input fields coming on top of everything.
// @todo Is there a better solution other than hiding
it on hover?
if ( $.browser.msie ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs