mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
On error, remove the upload div
This commit is contained in:
parent
77aa909e35
commit
422179a6b5
@ -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…
Reference in New Issue
Block a user