Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 22:17, 23 April 2018
6 bytes added
,
22:17, 23 April 2018
no edit summary
Line 34:
Line 34:
var currentLang = data.query.userinfo.options.language;
var currentLang = data.query.userinfo.options.language;
setCookie('lang', lang);
setCookie('lang', lang);
+
console.log(lang, userid, currentLang);
if(userid != 0 && lang != currentLang){
if(userid != 0 && lang != currentLang){
Line 116:
Line 117:
dataType: 'json'
dataType: 'json'
}).done(function (data){
}).done(function (data){
−
console.log('2');
location.reload();
location.reload();
});
});
Mark.wooff
Bureaucrats
,
Administrators
55
edits