trigger done with better info if upload fails, dont fail if screen/window are not defined in init
This commit is contained in:
parent
c753688f41
commit
71fdb6f8aa
3 changed files with 5 additions and 4 deletions
|
|
@ -61,12 +61,12 @@ pandora.ui.upload = function(oshash, file) {
|
|||
that.status = 'uplaod failed';
|
||||
that.progress = -1;
|
||||
that.responseText = evt.target.responseText;
|
||||
that.triggerEvent('done', tat);
|
||||
done();
|
||||
}, false);
|
||||
self.req.addEventListener('abort', function (evt) {
|
||||
that.status = 'aborted';
|
||||
that.progress = -1;
|
||||
that.triggerEvent('done', tat);
|
||||
done();
|
||||
}, false);
|
||||
var formData = new FormData();
|
||||
Ox.forEach(uploadData, function(value, key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue