Index: branches/wmf-deployment/extensions/UsabilityInitiative_alpha/WikiEditor/WikiEditor.combined.js |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | $j(document).ready( function() { |
5 | 5 | // Check preferences for highlight |
6 | | - if ( !wgWikiEditorEnabledModules.highlight ) { |
| 6 | + if ( !wgWikiEditorEnabledModules.toc ) { //HACK |
7 | 7 | return true; |
8 | 8 | } |
9 | 9 | // Add the highlight module |
Index: branches/wmf-deployment/extensions/UsabilityInitiative_alpha/WikiEditor/WikiEditor.combined.min.js |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | |
3 | | -$j(document).ready(function(){if(!wgWikiEditorEnabledModules.highlight){return true;} |
| 3 | +$j(document).ready(function(){if(!wgWikiEditorEnabledModules.toc){return true;} |
4 | 4 | if($j.fn.wikiEditor){$j('textarea#wpTextbox1').wikiEditor('addModule','highlight');}});$j(document).ready(function(){if(!wgWikiEditorEnabledModules.preview){return true;} |
5 | 5 | if($j.fn.wikiEditor){$j('textarea#wpTextbox1').wikiEditor('addModule','preview');}});$j(document).ready(function(){if(!wgWikiEditorEnabledModules.publish){return true;} |
6 | 6 | if($j.fn.wikiEditor){$j('textarea#wpTextbox1').wikiEditor('addModule','publish');}});$j(document).ready(function(){if(!wgWikiEditorPreferences||!(wgWikiEditorPreferences.toc&&wgWikiEditorPreferences.toc.enable)){return true;} |