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 12:39, 23 April 2018
62 bytes added
,
12:39, 23 April 2018
no edit summary
Line 16:
Line 16:
$( document ).ready(function() {
$( document ).ready(function() {
−
var lang = getCookie('lang');
+
var lang = getCookie('lang')
!= "" ? getCookie('lang') : 'en'
;
$.ajax({
$.ajax({
Line 33:
Line 33:
var userid = data.query.userinfo.id;
var userid = data.query.userinfo.id;
var currentLang = data.query.userinfo.options.language;
var currentLang = data.query.userinfo.options.language;
+
setCookie('lang', lang);
if(userid != 0 && lang != currentLang){
if(userid != 0 && lang != currentLang){
Mark.wooff
Bureaucrats
,
Administrators
55
edits