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

Changes

Jump to navigation Jump to search
11 bytes removed ,  22:57, 18 April 2018
no edit summary
Line 17: Line 17:     
var lang = getCookie('lang');
 
var lang = getCookie('lang');
console.log('lang: ' + lang);
+
console.log('current lang: ' + lang);
    
$.ajax({
 
$.ajax({
Line 35: Line 35:  
     var currentLang = data.query.userinfo.options.language;
 
     var currentLang = data.query.userinfo.options.language;
   −
     if(userid != 0 && lang != "" && lang != currentLang){
+
     if(userid != 0 && lang != currentLang){
 
         $.ajax({
 
         $.ajax({
 
             url: 'api.php',
 
             url: 'api.php',
Line 70: Line 70:     
mw.hook('mw.uls.interface.language.change').add(function (lang){
 
mw.hook('mw.uls.interface.language.change').add(function (lang){
     console.log('lang change to: ' + lang);
+
     console.log('lang changed to: ' + lang);
    setCookie('lang', lang);
   
     $.ajax({
 
     $.ajax({
 
         url: 'api.php',
 
         url: 'api.php',
Line 88: Line 87:  
         var currentLang = data.query.userinfo.options.language;
 
         var currentLang = data.query.userinfo.options.language;
   −
         if(userid != 0 && lang != "" && lang != currentLang){
+
         if(userid != 0 && lang != currentLang){
 +
            setCookie('lang', lang);
 
             $.ajax({
 
             $.ajax({
 
                 url: 'api.php',
 
                 url: 'api.php',

Navigation menu

GCwiki