Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -1169,17 +1169,14 @@ |
1170 | 1170 | } |
1171 | 1171 | |
1172 | 1172 | public static function addModules( OutputPage $out ) { |
1173 | | - if ( method_exists( $out, 'addModules' ) ) { |
1174 | | - $out->addModules( array( |
1175 | | - 'jquery.form', |
1176 | | - 'jquery.ui.dialog', |
1177 | | - 'jquery.autoresize', |
1178 | | - 'ext.translate.quickedit', |
1179 | | - ) ); |
1180 | | - } else { |
1181 | | - // Our class |
1182 | | - $out->addScriptFile( TranslateUtils::assetPath( 'js/quickedit.js' ) ); |
| 1173 | + TranslateUtils::addModules( $out, array( |
| 1174 | + 'jquery.form', |
| 1175 | + 'jquery.ui.dialog', |
| 1176 | + 'jquery.autoresize', |
| 1177 | + 'ext.translate.quickedit', |
| 1178 | + ) ); |
1183 | 1179 | |
| 1180 | + if ( !method_exists( $out, 'addModules' ) ) { |
1184 | 1181 | // Core jQuery |
1185 | 1182 | $out->includeJQuery(); |
1186 | 1183 | $out->addScriptFile( TranslateUtils::assetPath( 'js/jquery-ui-1.7.2.custom.min.js' ) ); |