diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-01-16 15:29:45 +0100 |
---|---|---|
committer | Jeremy White <jwhite@codeweavers.com> | 2015-01-16 10:06:34 -0600 |
commit | 8d1ea67789e9fe2ebef981f0b292fbf6dd59d3c3 (patch) | |
tree | e0f893c3744e58c92ceba297f5aae5efa783e174 /spice_auto.html | |
parent | 84171b2406056349992a3aac82c6ba8b21792764 (diff) |
Add progress bar for file transfer
Diffstat (limited to 'spice_auto.html')
-rw-r--r-- | spice_auto.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spice_auto.html b/spice_auto.html index 689b066..d374054 100644 --- a/spice_auto.html +++ b/spice_auto.html @@ -149,6 +149,8 @@ } if (window.File && window.FileReader && window.FileList && window.Blob) { + var spice_xfer_area = document.getElementById('spice-xfer-area'); + document.getElementById('spice-area').removeChild(spice_xfer_area); document.getElementById('spice-area').removeEventListener('dragover', handle_file_dragover, false); document.getElementById('spice-area').removeEventListener('drop', handle_file_drop, false); } @@ -164,6 +166,8 @@ if (window.File && window.FileReader && window.FileList && window.Blob) { + var spice_xfer_area = document.createElement("div"); + spice_xfer_area.setAttribute('id', 'spice-xfer-area'); document.getElementById('spice-area').addEventListener('dragover', handle_file_dragover, false); document.getElementById('spice-area').addEventListener('drop', handle_file_drop, false); } |