r71213 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71212‎ | r71213 | r71214 >
Date:21:20, 17 August 2010
Author:tparscal
Status:ok
Tags:
Comment:
Swtiched to using resource loader modules rather than direct scripts
Modified paths:
  • /branches/resourceloader/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: branches/resourceloader/phase3/includes/EditPage.php
@@ -318,11 +318,11 @@
319319 $this->preview = true;
320320 }
321321
322 - $wgOut->addScriptFile( 'edit.js' );
 322+ $wgOut->addResources( 'mediawiki.legacy.edit' );
323323
324324 if ( $wgUser->getOption( 'uselivepreview', false ) ) {
325325 $wgOut->includeJQuery();
326 - $wgOut->addScriptFile( 'preview.js' );
 326+ $wgOut->addResources( 'mediawiki.legacy.preview' );
327327 }
328328 // Bug #19334: textarea jumps when editing articles in IE8
329329 $wgOut->addStyle( 'common/IE80Fixes.css', 'screen', 'IE 8' );

Status & tagging log