Remove the dependency on uls.data

Change-Id: I9fa103ee7d338ed8ea2032c82249a47d022d2c90
This commit is contained in:
Amir E. Aharoni
2013-11-06 12:55:09 +02:00
committed by Amire80
parent f5ce066c80
commit b23f937cb7
4 changed files with 30 additions and 7 deletions

View File

@@ -47,6 +47,7 @@
mw.uls = mw.uls || {};
mw.uls.previousLanguagesCookie = 'uls-previous-languages';
mw.uls.previousLanguageAutonymCookie = 'uls-previous-language-autonym';
mw.uls.languageSettingsModules = ['ext.uls.inputsettings', 'ext.uls.displaysettings'];
// What was the last thing that the user did to select the language:
@@ -94,6 +95,7 @@
uri.extend( {
setlang: language
} );
window.location.href = uri.toString();
} );
@@ -107,8 +109,10 @@
};
mw.uls.setPreviousLanguages = function ( previousLanguages ) {
$.cookie( mw.uls.previousLanguagesCookie, $.toJSON( previousLanguages ),
{ path: '/' } );
$.cookie( mw.uls.previousLanguagesCookie,
$.toJSON( previousLanguages ),
{ path: '/' }
);
};
mw.uls.getPreviousLanguages = function () {