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 08:05, 7 March 2020
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 );
Admin.ethan
IMadmin,
Bureaucrats
,
Administrators
3
edits