mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-01 03:17:04 +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' );
|
|
} ); |