mediawiki-extensions-WikiEd.../modules/ext.wikiEditor.templates.js
goibhniu bddd21b300 Peserve jQuery references to avoid conflicts
* Added closures for jQuery where missing.
* Added closures for mediaWiki where missing.
* Using ready( $ ) where possible.
* Removed empty CSS block.

Change-Id: Ifdd4b10063221a4967d812eafd43858623ec5d28
2013-11-06 23:34:46 +01:00

14 lines
335 B
JavaScript

/*
* JavaScript for WikiEditor Templates
*/
( function ( mw, $ ) {
$( document ).ready( function () {
// Disable for template namespace
if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
return true;
}
// Add templates module
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'templates' );
} );
}( mediaWiki, jQuery ) );