r59903 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59902‎ | r59903 | r59904 >
Date:21:16, 9 December 2009
Author:tparscal
Status:ok
Tags:
Comment:
Ensured that the TOC building code doesn't run even when the module is disabled.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js
@@ -21,6 +21,11 @@
2222 */
2323 evt: {
2424 ready: function( context, event ) {
 25+ // Only run this code if this module is turned on
 26+ if ( !( '$toc' in context.modules ) ) {
 27+ return;
 28+ }
 29+
2530 // Add the TOC to the document
2631 $.wikiEditor.modules.toc.fn.build( context );
2732 context.$content.parent()

Follow-up revisions

RevisionCommit summaryAuthorDate
r59904UsabilityInitiative: Fix code preventing CSS from being added twice, recombin...catrope21:24, 9 December 2009

Status & tagging log