Update jquery.uls to d4de09ffb94dd9682

* Improve the hide-show logic of ULS

Bug: T114123
Change-Id: If7a23b035edf3117520a9c313997a26c7b6c4857
This commit is contained in:
Santhosh Thottingal
2015-10-06 10:43:46 +05:30
parent 125af37b05
commit bd78bdc996

View File

@@ -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 {