mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 16:26:39 +00:00
12 lines
276 B
JavaScript
12 lines
276 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Templates
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
// Disable for template namespace
|
|
if ( mw.config.get( 'wgNamespaceNumber' ) == 10 ) {
|
|
return true;
|
|
}
|
|
// Add templates module
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'templates' );
|
|
} ); |