Remove shiny:fileuploaded event

This commit is contained in:
Winston Chang
2017-02-01 11:17:08 -06:00
parent 79a085a9be
commit 3e25c9f3f4

View File

@@ -130,7 +130,7 @@ $.extend(FileUploader.prototype, FileProcessor.prototype);
var evt = jQuery.Event("shiny:inputchanged");
evt.name = this.id;
evt.value = fileInfo;
evt.inputType = 'fileupload';
evt.inputType = 'shiny.fileupload';
$(document).trigger(evt);
this.makeRequest(
@@ -144,12 +144,6 @@ $.extend(FileUploader.prototype, FileProcessor.prototype);
self.onError(error);
});
this.$bar().text('Finishing upload');
// Trigger event when all files are finished uploading.
var evt = jQuery.Event("shiny:fileuploaded");
evt.name = this.id;
evt.files = fileInfo;
$(document).trigger(evt);
};
this.onError = function(message) {
this.$setError(message || '');