Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -904,14 +904,16 @@ |
905 | 905 | ); |
906 | 906 | |
907 | 907 | $wgOut->addScript( Skin::makeVariablesScript( $scriptVars ) ); |
908 | | - |
| 908 | + |
| 909 | + // For <charinsert> support; not provided by js2 yet |
| 910 | + $wgOut->addScriptFile( 'edit.js' ); |
| 911 | + |
909 | 912 | if ( $wgEnableJS2system ) { |
910 | | - //js2version of upload page: |
| 913 | + // JS2 upload scripts |
911 | 914 | $wgOut->addScriptClass( 'uploadPage' ); |
912 | 915 | } else { |
913 | | - //legacy upload code: |
| 916 | + // Legacy upload javascript |
914 | 917 | $wgOut->addScriptFile( 'upload.js' ); |
915 | | - $wgOut->addScriptFile( 'edit.js' ); // For <charinsert> support |
916 | 918 | } |
917 | 919 | } |
918 | 920 | |