mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-19 15:16:01 -04:00
On error, remove the upload div
This commit is contained in:
parent
711377f0d5
commit
fb2ffdae8b
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user