|
|
@ -157,8 +157,6 @@ export class FileUpload extends BI.Widget { |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
NProgress.set(0.0);
|
|
|
|
NProgress.set(0.0);
|
|
|
|
self.xhr.abort(); |
|
|
|
self.xhr.abort(); |
|
|
|
self.uploadButton.setEnable(true); |
|
|
|
|
|
|
|
self.fileInfo.setVisible(false); |
|
|
|
|
|
|
|
self.store.setFileName(''); |
|
|
|
self.store.setFileName(''); |
|
|
|
self.clearInfo(); |
|
|
|
self.clearInfo(); |
|
|
|
self.fireEvent(FileUpload.EVENT_CLEAR_FILE); |
|
|
|
self.fireEvent(FileUpload.EVENT_CLEAR_FILE); |
|
|
@ -308,6 +306,7 @@ export class FileUpload extends BI.Widget { |
|
|
|
public clearInfo() { |
|
|
|
public clearInfo() { |
|
|
|
this.uploadButton.setEnable(true); |
|
|
|
this.uploadButton.setEnable(true); |
|
|
|
this.fileInfo.setVisible(false); |
|
|
|
this.fileInfo.setVisible(false); |
|
|
|
|
|
|
|
this.errorInfo.setVisible(false); |
|
|
|
this.textEditor.setValue(''); |
|
|
|
this.textEditor.setValue(''); |
|
|
|
this.options.attachId = ''; |
|
|
|
this.options.attachId = ''; |
|
|
|
} |
|
|
|
} |
|
|
|