On error, remove the upload div

This commit is contained in:
Micah Lee 2019-02-17 09:58:57 -08:00
parent 711377f0d5
commit fb2ffdae8b

View File

@ -81,7 +81,10 @@ $(function(){
ajax.addEventListener('error', function(event){
console.log('error', event);
flash('error', 'Error uploading');
flash('error', 'Error uploading: '+filenames.join(', '));
// Remove the upload div
ajax.$upload_div.remove()
}, false);
ajax.addEventListener('abort', function(event){