mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
BUGFIX: cancelling an upload should hide cancel button
This commit is contained in:
parent
499f18a099
commit
9c2a7f0fd1
1 changed files with 2 additions and 1 deletions
|
@ -290,7 +290,8 @@ var ComposerView = Discourse.View.extend(Ember.Evented, {
|
|||
// bind on the click event on the cancel link
|
||||
$('#cancel-file-upload').on('click', function() {
|
||||
// cancel the upload
|
||||
// NOTE: this will trigger a 'fileuploadfail' event with status = 0
|
||||
self.set('isUploading', false);
|
||||
// NOTE: this might trigger a 'fileuploadfail' event with status = 0
|
||||
if (jqXHR) jqXHR.abort();
|
||||
// unbind
|
||||
$(this).off('click');
|
||||
|
|
Loading…
Reference in a new issue