hide elements before they are displayed

import-zips
Rob Loranger 5 years ago
parent 02fb828934
commit 50986664e8
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
  1. 2
      static/js/import.js

@ -6,7 +6,7 @@ const zipWarning = document.querySelector('span.zip > p.error');
const fileInput = document.querySelector('input[type="file"]')
document.onreadystatechange = () => {
if ( document.readyState === "complete") {
if ( document.readyState === "interactive") {
selectElem.disabled = true;
submitElem.disabled = true;
zipInfo.hidden = true;

Loading…
Cancel
Save