Santhosh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/243877
Change subject: Update jquery.uls to d4de09ffb94dd9682
......................................................................
Update jquery.uls to d4de09ffb94dd9682
* Improve the hide-show logic of ULS
Bug: T114123
Change-Id: If7a23b035edf3117520a9c313997a26c7b6c4857
---
M lib/jquery.uls/src/jquery.uls.core.js
1 file changed, 6 insertions(+), 8 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector
refs/changes/77/243877/1
diff --git a/lib/jquery.uls/src/jquery.uls.core.js
b/lib/jquery.uls/src/jquery.uls.core.js
index 201d384..529b47a 100644
--- a/lib/jquery.uls/src/jquery.uls.core.js
+++ b/lib/jquery.uls/src/jquery.uls.core.js
@@ -177,9 +177,6 @@
this.initialized = true;
}
- // hide any other visible ULS
- $( '.uls-menu' ).hide();
-
this.$menu.show();
this.$menu.scrollIntoView();
this.shown = true;
@@ -321,7 +318,11 @@
/**
* On cancel handler for the uls menu
*/
- cancel: function () {
+ cancel: function ( e ) {
+ if ( e && this.$element.is( e.target ) ) {
+ return;
+ }
+
this.hide();
if ( this.options.onCancel ) {
@@ -353,10 +354,7 @@
}
},
- click: function ( e ) {
- e.stopPropagation();
- e.preventDefault();
-
+ click: function () {
if ( this.shown ) {
this.hide();
} else {
--
To view, visit https://gerrit.wikimedia.org/r/243877
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If7a23b035edf3117520a9c313997a26c7b6c4857
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits