diff options
author | Frederick Muriuki Muriithi | 2024-06-14 10:31:39 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-14 10:43:57 -0500 |
commit | 0783b155002da7034d68ead6c62ccdb0670b37b7 (patch) | |
tree | 6353962d22dbb05d63b085c84d323c14b200452d /qc_app/static | |
parent | 6043dabe8f1351f567843a6c0509958d6d56870a (diff) | |
download | gn-uploader-0783b155002da7034d68ead6c62ccdb0670b37b7.tar.gz |
Use bootstrap for displaying progress widget
This commit converts the progress indication widget into a bootstrap
modal dialog, and updates the javascript to prevent the code from
interacting with bootstrap in unpredictable ways.
Diffstat (limited to 'qc_app/static')
-rw-r--r-- | qc_app/static/js/upload_progress.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qc_app/static/js/upload_progress.js b/qc_app/static/js/upload_progress.js index 22dbda8..9638b36 100644 --- a/qc_app/static/js/upload_progress.js +++ b/qc_app/static/js/upload_progress.js @@ -40,7 +40,6 @@ function setup_cancel_upload(request, indicator_elt) { "click", function(event) { event.preventDefault(); request.abort(); - indicator_elt.setAttribute("class", "hidden"); }); } @@ -80,12 +79,10 @@ function make_data_uploader(setup_formdata) { } return false; } - pindicator.setAttribute("class", "modal"); var formdata = setup_formdata(form); document.getElementById("progress-filename").innerHTML = the_file.name; - var request = setup_request( - the_file, document.getElementById("upload-progress-indicator")); + var request = setup_request(the_file, pindicator); request.open(form.getAttribute("method"), form.getAttribute("action")); request.send(formdata); return false; |