Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: // Scripts to use when viewing articles if (mw.config.get('wgIsArticle') || window.location.href.in...") |
|||
Line 3: | Line 3: | ||
// Scripts to use when viewing articles | // Scripts to use when viewing articles | ||
if (mw.config.get('wgIsArticle') || window.location.href.indexOf('action=submit') > -1 || mw.config.get('wgNamespaceNumber') == -1) { | if (mw.config.get('wgIsArticle') || window.location.href.indexOf('action=submit') > -1 || mw.config.get('wgNamespaceNumber') == -1) { | ||
mw.loader.load( '/index.php?title= | mw.loader.load( '/index.php?title=Mediawiki:CollapsibleTables.js&action=raw&ctype=text/javascript' ); | ||
} | } |
Revision as of 04:54, 8 June 2017
/* Any JavaScript here will be loaded for all users on every page load. */ // Scripts to use when viewing articles if (mw.config.get('wgIsArticle') || window.location.href.indexOf('action=submit') > -1 || mw.config.get('wgNamespaceNumber') == -1) { mw.loader.load( '/index.php?title=Mediawiki:CollapsibleTables.js&action=raw&ctype=text/javascript' ); }