r63158 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63157‎ | r63158 | r63159 >
Date:00:07, 2 March 2010
Author:nimishg
Status:ok
Tags:
Comment:
no template editor while editing template namespace
Modified paths:
  • /trunk/extensions/UsabilityInitiative/WikiEditor/Modules/TemplateEditor/TemplateEditor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/WikiEditor/Modules/TemplateEditor/TemplateEditor.js
@@ -5,6 +5,10 @@
66 if ( !wgWikiEditorEnabledModules.templateEditor ) {
77 return true;
88 }
 9+ //disable if in template namespace
 10+ if( wgNamespaceNumber == wgNamespaceIds['template']){
 11+ return true;
 12+ }
913 // Add the templateEditor module
1014 if ( $j.fn.wikiEditor ) {
1115 $j( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );

Follow-up revisions

RevisionCommit summaryAuthorDate
r63165UsabilityInitiative: Remove template namespace check added in r63141 in favor...catrope10:29, 2 March 2010

Status & tagging log