summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-01-14 19:24:18 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-01-14 19:24:18 +0100
commit224b22a051051f6c2e494c3a2fb4adb42898e2d1 (patch)
tree85a41a4cf8533bf740ec4c8d3affce88414daa56 /extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
parent9937b8e6d6a8b4517c04c143daaf9ebd42ce8ba0 (diff)
Update to MediaWiki 1.22.1
Diffstat (limited to 'extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js')
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js b/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
index 660a14fb..8879d10d 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
@@ -1,13 +1,12 @@
/*
* JavaScript for WikiEditor Template Editor
*/
-( function ( mw, $ ) {
- $( document ).ready( function () {
- // Disable in template namespace
- if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
- return true;
- }
- // Add template editor module
- $( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
- } );
-}( mediaWiki, jQuery ) );
+
+$( document ).ready( function () {
+ // Disable in template namespace
+ if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
+ return true;
+ }
+ // Add template editor module
+ $( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
+});