Difference between revisions of "MediaWiki:Common.js"
(Created page with '→Any JavaScript here will be loaded for all users on every page load.: if (wgPageName == "Special:Search") //scripts specific to Special:Search { importScript("MediaWiki...') |
Nikerabbit (talk | contribs) |
||
Line 5: | Line 5: | ||
importScript("MediaWiki:Common.js/search.js") | importScript("MediaWiki:Common.js/search.js") | ||
} | } | ||
+ | |||
+ | // Hide Translation Tool if not a translators | ||
+ | $( document ).ready( function() { | ||
+ | if ( wgUserGroups.join(' ').indexOf('translator') === -1 ) $( '#n-ub-trans-tool' ).hide(); | ||
+ | }); |
Revision as of 11:08, 2 June 2011
/* Any JavaScript here will be loaded for all users on every page load. */
if (wgPageName == "Special:Search") //scripts specific to Special:Search
{
importScript("MediaWiki:Common.js/search.js")
}
// Hide Translation Tool if not a translators
$( document ).ready( function() {
if ( wgUserGroups.join(' ').indexOf('translator') === -1 ) $( '#n-ub-trans-tool' ).hide();
});
This page was last edited on 2 June 2011, at 11:08. Content is available under Creative Commons License SA 4.0 unless otherwise noted.