update files dialog on successful upload

This commit is contained in:
rolux 2013-04-26 09:40:46 +02:00
parent a4442dacd8
commit 941948ba37

View file

@ -35,10 +35,13 @@ pandora.ui.uploadFileDialog = function(file, callback) {
title: 'Cancel Upload' title: 'Cancel Upload'
}).bindEvent({ }).bindEvent({
click: function() { click: function() {
if (this.options('title') == 'Cancel Upload') { var title = this.options('title');
upload.abort();
}
$uploadDialog.close(); $uploadDialog.close();
if (title == 'Cancel Upload') {
upload.abort();
} else if (title == 'Done') {
callback();
}
} }
}) })
], ],