diff --git a/app/static/scripts/editor.js b/app/static/scripts/editor.js index d12b403..4304b4f 100644 --- a/app/static/scripts/editor.js +++ b/app/static/scripts/editor.js @@ -25,14 +25,14 @@ ta.addEventListener('keydown', function(e) { e.target.selectionEnd = start + 1; } if (e.ctrlKey && keyCode == 13) { - let e = e.target; - while(! (e instanceof HTMLFormElement)) { - e = e.parentNode; + let t = e.target; + while(! (t instanceof HTMLFormElement)) { + t = t.parentNode; } try { - e.submit(); + t.submit(); } catch(exception) { - e.submit.click(); + t.submit.click(); } } });