Explicit function calls

main2
Bob Mottram 2019-09-22 12:20:14 +01:00
parent c21186e901
commit 65541aff98
1 changed files with 4 additions and 5 deletions

View File

@ -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' \