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