update files dialog on successful upload
This commit is contained in:
parent
a4442dacd8
commit
941948ba37
1 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue