From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- extensions/WikiEditor/modules/ext.wikiEditor.templates.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 extensions/WikiEditor/modules/ext.wikiEditor.templates.js (limited to 'extensions/WikiEditor/modules/ext.wikiEditor.templates.js') diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.templates.js b/extensions/WikiEditor/modules/ext.wikiEditor.templates.js new file mode 100644 index 00000000..4ac09b54 --- /dev/null +++ b/extensions/WikiEditor/modules/ext.wikiEditor.templates.js @@ -0,0 +1,12 @@ +/* + * 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' ); +} ); \ No newline at end of file -- cgit v1.2.3-54-g00ecf