Important: The GCConnex decommission will not affect GCCollab or GCWiki. Thank you and happy collaborating!

Changes

Jump to navigation Jump to search
110 bytes removed ,  22:21, 23 April 2018
no edit summary
Line 16: Line 16:  
$( document ).ready(function() {
 
$( document ).ready(function() {
   −
console.log(getCookie('lang'));
   
var lang = getCookie('lang') !== "undefined" ? getCookie('lang') : 'en';
 
var lang = getCookie('lang') !== "undefined" ? getCookie('lang') : 'en';
   Line 35: 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 65: Line 63:  
                 dataType: 'json'
 
                 dataType: 'json'
 
             }).done(function (data){
 
             }).done(function (data){
                console.log('1');
   
                 location.reload();
 
                 location.reload();
 
             });
 
             });

Navigation menu

GCwiki