forked from 0x2620/pandora
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'
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue