mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 15:05:11 -04:00
On error, remove the upload div
This commit is contained in:
parent
77aa909e35
commit
422179a6b5
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ $(function(){
|
||||||
|
|
||||||
ajax.addEventListener('error', function(event){
|
ajax.addEventListener('error', function(event){
|
||||||
console.log('error', event);
|
console.log('error', event);
|
||||||
flash('error', 'Error uploading');
|
flash('error', 'Error uploading: '+filenames.join(', '));
|
||||||
|
|
||||||
|
// Remove the upload div
|
||||||
|
ajax.$upload_div.remove()
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
ajax.addEventListener('abort', function(event){
|
ajax.addEventListener('abort', function(event){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue