Merge "mediawiki.special.upload: Use ES5 .forEach() instead of jQuery"
[lhc/web/wiklou.git] / resources / src / mediawiki.special / mediawiki.special.upload.js
index fcd933e..9af7ab2 100644 (file)
                }
 
                // fillDestFile setup
-               $.each( mw.config.get( 'wgUploadSourceIds' ), function ( index, sourceId ) {
+               mw.config.get( 'wgUploadSourceIds' ).forEach( function ( sourceId ) {
                        $( '#' + sourceId ).change( function () {
                                var path, slash, backslash, fname;
                                if ( !mw.config.get( 'wgUploadAutoFill' ) ) {