MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: function includePage( name ) { document.write('<script type="text/javascript" src="' + wgScript + '?t...") |
No edit summary |
||
Line 1: | Line 1: | ||
/ | // ============================================================ | ||
// BEGIN import Onlyifediting-functions | |||
// SEE ALSO MediaWiki:Onlyifediting.js | |||
if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) { | |||
{ | document.write('<script type="text/javascript" src="/index.php?title='+ | ||
'MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s">'+ | |||
'</script>'); | |||
} | |||
// END import Onlyifediting-functions | |||
} | // ============================================================ | ||
/ | |||
/ | |||
Revision as of 17:39, 13 March 2012
// ============================================================ // BEGIN import Onlyifediting-functions // SEE ALSO MediaWiki:Onlyifediting.js if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) { document.write('<script type="text/javascript" src="/index.php?title='+ 'MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s">'+ '</script>'); } // END import Onlyifediting-functions // ============================================================