https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106316
Revision: 106316
Author: santhosh
Date: 2011-12-15 11:23:29 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Remove the unnesessary hide(), It will be hidden using css.
Do not hide menu when clicked on the menu items.
Modified Paths:
--------------
trunk/extensions/Narayam/resources/ext.narayam.core.js
Modified: trunk/extensions/Narayam/resources/ext.narayam.core.js
===================================================================
--- trunk/extensions/Narayam/resources/ext.narayam.core.js 2011-12-15
11:09:18 UTC (rev 106315)
+++ trunk/extensions/Narayam/resources/ext.narayam.core.js 2011-12-15
11:23:29 UTC (rev 106316)
@@ -660,7 +660,6 @@
var positionFunction = rtlEnv ? "append" : "prepend";
$( '#p-personal ul:first' )[positionFunction]( $li );
$( 'body' ).prepend( $menu );
- $menu.hide();
$li.click( function( event ) {
var menuSide, menuOffset, distanceToEdge;
@@ -700,7 +699,9 @@
$menu.removeClass( 'open' );
$menu.hide();
} );
-
+ $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?
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs