Update jquery.uls to d4de09ffb94dd9682
* Improve the hide-show logic of ULS Bug: T114123 Change-Id: If7a23b035edf3117520a9c313997a26c7b6c4857
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user