Update jquery.uls
Also update the onReady callback as per the changes in jquery.uls Change-Id: I9e4968af87258558f7a94900bd9bc735cb0d9662
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -139,8 +139,8 @@
|
||||
}
|
||||
|
||||
$ulsTrigger.uls( {
|
||||
onReady: function ( uls ) {
|
||||
addDisplaySettings( uls );
|
||||
onReady: function () {
|
||||
addDisplaySettings( this );
|
||||
},
|
||||
onSelect: function ( language ) {
|
||||
mw.uls.changeLanguage( language );
|
||||
|
||||
Reference in New Issue
Block a user