Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
MediaWiki:Common.js
(view source)
Revision as of 11:47, 18 October 2023
310 bytes added
,
11:47, 18 October 2023
m
turn off lang cookie script since it can cause issues in collab for users for some values of the cookie
Line 1:
Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
−
+
/*
function getCookie(name) {
function getCookie(name) {
match = document.cookie.match(new RegExp(name + '=([^;]+)'));
match = document.cookie.match(new RegExp(name + '=([^;]+)'));
Line 123:
Line 123:
});
});
−
+
*/
/** Collapsible tables *********************************************************
/** Collapsible tables *********************************************************
Line 221:
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 );
Ilia.salem
Bureaucrats
,
Interface administrators
, nuke,
Administrators
139
edits