Cog icon can be used to close the language settings panel

Bug: 47971
Change-Id: I7b6d6142e113bf3f90feef1650bc384a5edc42cb
This commit is contained in:
Santhosh Thottingal
2013-05-17 09:43:29 +05:30
committed by Gerrit Code Review
parent bb3e72f5a0
commit b1563040ab

View File

@@ -65,7 +65,7 @@
listen: function () { listen: function () {
var langSettings = this; var langSettings = this;
// Register all event listeners to the ULS language settings here. // Register all event listeners to the ULS language settings here.
langSettings.$element.on( 'click', $.proxy( langSettings.show, langSettings ) ); langSettings.$element.on( 'click', $.proxy( langSettings.click, langSettings ) );
langSettings.$window.find( '#languagesettings-close' ) langSettings.$window.find( '#languagesettings-close' )
.on( 'click', $.proxy( langSettings.close, langSettings ) ); .on( 'click', $.proxy( langSettings.close, langSettings ) );
@@ -219,7 +219,9 @@
}, },
click: function () { click: function () {
if ( !this.shown ) { if ( this.shown ) {
this.hide();
} else {
this.show(); this.show();
} }
} }