MediaWiki:Common.js: Difference between revisions
From Mutant Year Zero
mNo edit summary |
mNo edit summary |
||
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. */ | ||
/* Make the logo link to main site */ | |||
$(".timeless-logo").attr("href", 'http://rpg.sandcat.nl/'); | $(".timeless-logo").attr("href", 'http://rpg.sandcat.nl/'); | ||
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Movepage' ) { $( function () { i= $( 'input[name=wpLeaveRedirect]' ); if ( i.length ) { i[0].checked = false; } } ) } | /* for a Move, deselect the "Leave a redirect behind" checkbox by default */ | ||
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Movepage' ) { | |||
$( function () { | |||
i= $( 'input[name=wpLeaveRedirect]' ); | |||
if ( i.length ) { | |||
i[0].checked = false; | |||
} | |||
} ) | |||
} |
Revision as of 09:10, 12 December 2023
/* Any JavaScript here will be loaded for all users on every page load. */
/* Make the logo link to main site */
$(".timeless-logo").attr("href", 'http://rpg.sandcat.nl/');
/* for a Move, deselect the "Leave a redirect behind" checkbox by default */
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Movepage' ) {
$( function () {
i= $( 'input[name=wpLeaveRedirect]' );
if ( i.length ) {
i[0].checked = false;
}
} )
}