Merge "Add the performer to the UserRightsChanged hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 22 Sep 2015 18:15:25 +0000 (18:15 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 22 Sep 2015 18:15:25 +0000 (18:15 +0000)
resources/src/mediawiki/mediawiki.Upload.js

index 79628de..aafc37a 100644 (file)
                                comment: upload.getComment(),
                                filename: upload.getFilename(),
                                text: upload.getText()
-                       } ).then( function () {
+                       } ).then( function ( result ) {
                                upload.state = Upload.State.UPLOADED;
+                               upload.imageinfo = result.upload.imageinfo;
+                               return result;
                        }, function () {
                                upload.state = Upload.State.ERROR;
                        } );