r54669 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54668‎ | r54669 | r54670 >
Date:16:20, 9 August 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Support script loader
Modified paths:
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)
  • /trunk/phase3/includes/HTMLForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/HTMLForm.php
@@ -73,9 +73,9 @@
7474 static function addJS() {
7575 if( self::$jsAdded ) return;
7676
77 - global $wgOut, $wgStylePath;
 77+ global $wgOut;
7878
79 - $wgOut->addScriptFile( "$wgStylePath/common/htmlform.js" );
 79+ $wgOut->addScriptClass( 'htmlform' );
8080 }
8181
8282 static function loadInputFromParameters( $descriptor ) {
Index: trunk/phase3/includes/AutoLoader.php
@@ -599,6 +599,7 @@
600600 'edit' => 'skins/common/edit.js',
601601 'enhancedchanges.js' => 'skins/common/enhancedchanges.js',
602602 'history' => 'skins/common/history.js',
 603+ 'htmlform' => 'skins/common/htmlform.js',
603604 'IEFixes' => 'skins/common/IEFixes.js',
604605 'metadata' => 'skins/common/metadata.js',
605606 'mwsuggest' => 'skins/common/mwsuggest.js',

Follow-up revisions

RevisionCommit summaryAuthorDate
r59446Removed JS2 work (has been moved to the js2-work branch). Has been lightly te...tstarling12:00, 26 November 2009

Status & tagging log