fix textarea save

This commit is contained in:
Stewart Allen 2020-06-10 19:59:07 -04:00
commit 9e4129f02b
2 changed files with 3 additions and 2 deletions

View file

@ -344,7 +344,7 @@
API.show.alert("host:port malformed"); API.show.alert("host:port malformed");
return; return;
} }
if (SECURE && !isSecure(host)) { if (API.const.SECURE && !API.util.isSecure(host)) {
API.show.alert("host must begin with 'https' on a secure site"); API.show.alert("host must begin with 'https' on a secure site");
return; return;
} }
@ -371,7 +371,7 @@
} }
}; };
xhtr.upload.addEventListener('progress', function(evt) { xhtr.upload.addEventListener('progress', function(evt) {
API.show.progress(Math.ceil(evt.loaded/evt.total), "sending"); API.show.progress(evt.loaded/evt.total, "sending");
}); });
filename = $('print-filename').value; filename = $('print-filename').value;
xhtr.open("POST", xhtr.open("POST",

View file

@ -298,6 +298,7 @@
txt.setAttribute("wrap", "off"); txt.setAttribute("wrap", "off");
txt.setAttribute("spellcheck", "false"); txt.setAttribute("spellcheck", "false");
txt.setAttribute("style", "resize: none"); txt.setAttribute("style", "resize: none");
txt.onblur = inputAction;
btn.appendChild(DOC.createTextNode("edit")); btn.appendChild(DOC.createTextNode("edit"));