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'
}).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();
}
}
})
],