diff --git a/src/kiri/export.js b/src/kiri/export.js index 7bcd0001..b9ef98eb 100644 --- a/src/kiri/export.js +++ b/src/kiri/export.js @@ -344,7 +344,7 @@ API.show.alert("host:port malformed"); 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"); return; } @@ -371,7 +371,7 @@ } }; 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; xhtr.open("POST", diff --git a/src/kiri/ui.js b/src/kiri/ui.js index b282b8a3..01e35d80 100644 --- a/src/kiri/ui.js +++ b/src/kiri/ui.js @@ -298,6 +298,7 @@ txt.setAttribute("wrap", "off"); txt.setAttribute("spellcheck", "false"); txt.setAttribute("style", "resize: none"); + txt.onblur = inputAction; btn.appendChild(DOC.createTextNode("edit"));