Make the close button of language settings work

* Actually it should go to previous context. but that is a FIXME
* Jslint fixes

Change-Id: I2e0685adc42331fd86716dfa73be3630208aa893
This commit is contained in:
Santhosh Thottingal
2012-08-21 14:53:19 +05:30
parent 5c6567adbc
commit d070071274
2 changed files with 29 additions and 13 deletions

View File

@@ -20,7 +20,7 @@
( function( $ ) {
"use strict";
var closeRow = '<div class="row" id="languagesettings-close">' +
var closeRow = '<div class="row">' +
'<span id="languagesettings-close" class="icon-close"></span>' +
'</div>';
var settingsMenu = '<div class="four columns languagesettings-menu">' +
@@ -64,8 +64,7 @@
var that = this;
// Register all event listeners to the ULS language settings here.
that.$element.on( "click", $.proxy( that.show, that ) );
$( '#languagesettings-close' ).on( "click", $.proxy( that.hide, that ) );
$( '.uls-settings-close' ).on( "click", $.proxy( that.hide, that ) );
that.$window.find( 'span#languagesettings-close' ).on( "click", $.proxy( that.hide, that ) );
},
render: function() {