From 65541aff98416d2ec17faf7f20f42791c81aba6f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Sep 2019 12:20:14 +0100 Subject: [PATCH] Explicit function calls --- webinterface.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webinterface.py b/webinterface.py index 6bba4d992..4a123e159 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1383,14 +1383,13 @@ def cursorToEndOfMessageScript() -> str: script = \ 'function focusOnMessage() {\n' \ " var replyTextArea = document.getElementById('message');\n" \ - ' val = textarea.val();\n' \ + ' val = replyTextArea.val();\n' \ ' if (val.charAt(val.length-1) != " ") {\n' \ ' val += " ";\n' \ ' }\n' \ - ' replyTextArea\n' \ - ' .focus()\n' \ - ' .val("")\n' \ - ' .val(val);\n' \ + ' replyTextArea.focus();\n' \ + ' replyTextArea.val("");\n' \ + ' replyTextArea.val(val);\n' \ '}\n' \ "var replyTextArea = document.getElementById('message')\n" \ 'replyTextArea.onFocus = function() {\n' \