r58876 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58875‎ | r58876 | r58877 >
Date:21:10, 10 November 2009
Author:catrope
Status:deferred
Tags:
Comment:
UsabilityInitiative: Don't show the iframe on pages if all usability features are disabled
Modified paths:
  • /trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.js (deleted) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.js
@@ -1,7 +0,0 @@
2 -/* JavaScript for WikiEditor extension */
3 -
4 -js2AddOnloadHook( function() {
5 - if ( $j.wikiEditor != undefined && $j.wikiEditor.isSupported() || !$j.wikiEditor.isSupportKnown() ) {
6 - $j( 'textarea#wpTextbox1' ).wikiEditor();
7 - }
8 -} );
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php
@@ -7,10 +7,6 @@
88 */
99
1010 class WikiEditorHooks {
11 -
12 - static $scripts = array(
13 - 'raw' => array( 'src' => 'WikiEditor.js', 'version' => 1 ),
14 - );
1511 static $modules = array(
1612 'highlight' => array(
1713 'i18n' => 'WikiEditorHighlight',
@@ -346,12 +342,6 @@
347343 }
348344 }
349345 }
350 - // Prepend global script
351 - $mode = $wgUsabilityInitiativeResourceMode;
352 - if ( !isset( self::$scripts[$mode] ) ) {
353 - $mode = 'raw';
354 - }
355 - array_unshift( $scripts, self::$scripts[$mode] );
356346 // Add all scripts
357347 foreach ( $scripts as $script ) {
358348 UsabilityInitiativeHooks::addScript(

Status & tagging log