Browse Source

hide elements before they are displayed

import-zips
Rob Loranger 4 years ago
parent
commit
50986664e8
No known key found for this signature in database GPG Key ID: D6F1633A4F0903B8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      static/js/import.js

+ 1
- 1
static/js/import.js View File

@@ -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