trim white space

import-zips
Rob Loranger 5 years ago
parent 2deb6d0ee9
commit 0b95b16e3c
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
  1. 4
      less/pages/import.less
  2. 4
      static/js/import.js

@ -5,12 +5,12 @@ form.import-form {
&span.row { &span.row {
justify-content: space-around; justify-content: space-around;
} }
input[type=file] { input[type=file] {
width: 100%; width: 100%;
align-self: center; align-self: center;
} }
input[type=submit] { input[type=submit] {
width: 100%; width: 100%;
margin-top: .5rem; margin-top: .5rem;

@ -7,7 +7,7 @@ const fileInput = document.querySelector('input[type="file"]')
document.onreadystatechange = () => { document.onreadystatechange = () => {
if ( document.readyState === "complete") { if ( document.readyState === "complete") {
selectElem.disabled = true; selectElem.disabled = true;
submitElem.disabled = true; submitElem.disabled = true;
zipInfo.hidden = true; zipInfo.hidden = true;
zipWarning.hidden = true; zipWarning.hidden = true;
@ -28,7 +28,7 @@ fileInput.onchange = function() {
zipWarning.hidden = true; zipWarning.hidden = true;
} }
} }
if ( this.files.length > 1 ) { if ( this.files.length > 1 ) {
selectElem.disabled = false; selectElem.disabled = false;
submitElem.disabled = false; submitElem.disabled = false;

Loading…
Cancel
Save