Index: branches/resourceloader/phase3/includes/EditPage.php |
— | — | @@ -318,11 +318,11 @@ |
319 | 319 | $this->preview = true; |
320 | 320 | } |
321 | 321 | |
322 | | - $wgOut->addScriptFile( 'edit.js' ); |
| 322 | + $wgOut->addResources( 'mediawiki.legacy.edit' ); |
323 | 323 | |
324 | 324 | if ( $wgUser->getOption( 'uselivepreview', false ) ) { |
325 | 325 | $wgOut->includeJQuery(); |
326 | | - $wgOut->addScriptFile( 'preview.js' ); |
| 326 | + $wgOut->addResources( 'mediawiki.legacy.preview' ); |
327 | 327 | } |
328 | 328 | // Bug #19334: textarea jumps when editing articles in IE8 |
329 | 329 | $wgOut->addStyle( 'common/IE80Fixes.css', 'screen', 'IE 8' ); |