diff --git a/static/js/pandora/uploadFileDialog.js b/static/js/pandora/uploadFileDialog.js index d685f9f1..d4a146cc 100644 --- a/static/js/pandora/uploadFileDialog.js +++ b/static/js/pandora/uploadFileDialog.js @@ -35,10 +35,13 @@ pandora.ui.uploadFileDialog = function(file, callback) { title: 'Cancel Upload' }).bindEvent({ click: function() { - if (this.options('title') == 'Cancel Upload') { - upload.abort(); - } + var title = this.options('title'); $uploadDialog.close(); + if (title == 'Cancel Upload') { + upload.abort(); + } else if (title == 'Done') { + callback(); + } } }) ],