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 @@ |
8 | 8 | */ |
9 | 9 | |
10 | 10 | class WikiEditorHooks { |
11 | | - |
12 | | - static $scripts = array( |
13 | | - 'raw' => array( 'src' => 'WikiEditor.js', 'version' => 1 ), |
14 | | - ); |
15 | 11 | static $modules = array( |
16 | 12 | 'highlight' => array( |
17 | 13 | 'i18n' => 'WikiEditorHighlight', |
— | — | @@ -346,12 +342,6 @@ |
347 | 343 | } |
348 | 344 | } |
349 | 345 | } |
350 | | - // Prepend global script |
351 | | - $mode = $wgUsabilityInitiativeResourceMode; |
352 | | - if ( !isset( self::$scripts[$mode] ) ) { |
353 | | - $mode = 'raw'; |
354 | | - } |
355 | | - array_unshift( $scripts, self::$scripts[$mode] ); |
356 | 346 | // Add all scripts |
357 | 347 | foreach ( $scripts as $script ) { |
358 | 348 | UsabilityInitiativeHooks::addScript( |