Commit ff63e24c authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

Reset form if uploading a file fails

parent 1b6978e8
......@@ -125,7 +125,9 @@ var UploadController = Ember.Controller.extend({
error: function() {
progress.className = "progress-bar progress-bar-danger";
progress_text.innerHTML = 'Your request to upload the file has been rejected. Please try again later.';
progress.style.width = "0%";
submit_button.removeAttribute("disabled");
_this.set("submitDisabled", false);
_this.set("userHasEnteredData", false);
}
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment