mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 12:00:05 +00:00
089b73aa5d
* Moved test resource to the modules folder and registered it * Fixed tests file to use $ not $j * Cleaned up syntax in module definitions
12 lines
283 B
JavaScript
12 lines
283 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Templates
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
// Disable for template namespace
|
|
if ( mediaWiki.config.get( 'wgNamespaceNumber' ) == 10 ) {
|
|
return true;
|
|
}
|
|
// Add templates module
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'templates' );
|
|
} ); |