summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-02-17 09:58:57 -0800
committerMicah Lee <micah@micahflee.com>2019-02-17 09:58:57 -0800
commit422179a6b58210fff34d78994e6069c2924a0997 (patch)
treeb8d05ee897c5418def450bccf04291b4afbcea8e
parent77aa909e358a6b519bcb156937b8426ea97320ad (diff)
downloadonionshare-422179a6b58210fff34d78994e6069c2924a0997.tar.gz
onionshare-422179a6b58210fff34d78994e6069c2924a0997.zip
On error, remove the upload div
-rw-r--r--share/static/js/receive.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/static/js/receive.js b/share/static/js/receive.js
index 2aca03df..36bca07c 100644
--- a/share/static/js/receive.js
+++ b/share/static/js/receive.js
@@ -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){