Changes

No change in size ,  08:05, 7 March 2020
no edit summary
Line 15: Line 15:     
$( document ).ready(function() {
 
$( document ).ready(function() {
  −
var UIlang = mw.config.get( 'wgUserLanguage' );
  −
switch(UIlang){
  −
case 'en_ca':
  −
case 'en':
  −
$('#n-help a').attr('href', $('#n-help a').attr('href')+'/en/support/home');
  −
break;
  −
case 'fr_ca':
  −
case 'fr':
  −
$('#n-help a').attr('href', $('#n-help a').attr('href')+'/fr/support/home');
  −
break;
  −
default:
  −
break;
  −
}
      
var lang = getCookie('lang') !== "undefined" ? getCookie('lang') : 'en';
 
var lang = getCookie('lang') !== "undefined" ? getCookie('lang') : 'en';
Line 235: Line 221:  
         }
 
         }
 
     }
 
     }
 +
}
 +
 +
var UIlang = mw.config.get( 'wgUserLanguage' );
 +
switch(UIlang){
 +
case 'en_ca':
 +
case 'en':
 +
$('#n-help a').attr('href', $('#n-help a').attr('href')+'/en/support/home');
 +
break;
 +
case 'fr_ca':
 +
case 'fr':
 +
$('#n-help a').attr('href', $('#n-help a').attr('href')+'/fr/support/home');
 +
break;
 +
default:
 +
break;
 
}
 
}
       
addOnloadHook( createCollapseButtons );
 
addOnloadHook( createCollapseButtons );