|
|
|
@ -43,14 +43,12 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.file.on(BI.File.EVENT_ERROR, function () { |
|
|
|
|
self.fireEvent(BI.MultifileEditor.EVENT_ERROR, arguments); |
|
|
|
|
self._reset(); |
|
|
|
|
}); |
|
|
|
|
this.file.on(BI.File.EVENT_PROGRESS, function () { |
|
|
|
|
self.fireEvent(BI.MultifileEditor.EVENT_PROGRESS, arguments); |
|
|
|
|
}); |
|
|
|
|
this.file.on(BI.File.EVENT_UPLOADED, function () { |
|
|
|
|
self.fireEvent(BI.MultifileEditor.EVENT_UPLOADED, arguments); |
|
|
|
|
self._reset(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
@ -95,6 +93,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
upload: function () { |
|
|
|
|
this._reset(); |
|
|
|
|
this.file.upload(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|