On error, remove the upload div

This commit is contained in:
Micah Lee 2019-02-17 09:58:57 -08:00
parent 77aa909e35
commit 422179a6b5
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

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){