Update jquery.uls

Also update the onReady callback as per the changes in jquery.uls

Change-Id: I9e4968af87258558f7a94900bd9bc735cb0d9662
This commit is contained in:
Santhosh Thottingal
2012-10-09 19:58:53 +05:30
parent 8d31bf8c07
commit 069d9e6915
45 changed files with 754 additions and 67 deletions

View File

@@ -155,8 +155,9 @@
$moreLanguagesButton.uls( {
left: that.$parent.left,
top: that.$parent.top,
onReady: function ( uls ) {
var $back = $( '<a>' ).prop( 'href', '#' )
onReady: function ( ) {
var uls = this,
$back = $( '<a>' ).prop( 'href', '#' )
.data( 'i18n','ext-uls-back-to-display-settings' )
.i18n();

View File

@@ -139,8 +139,8 @@
}
$ulsTrigger.uls( {
onReady: function ( uls ) {
addDisplaySettings( uls );
onReady: function () {
addDisplaySettings( this );
},
onSelect: function ( language ) {
mw.uls.changeLanguage( language );