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 = \ script = \
'function focusOnMessage() {\n' \ 'function focusOnMessage() {\n' \
" var replyTextArea = document.getElementById('message');\n" \ " var replyTextArea = document.getElementById('message');\n" \
' val = textarea.val();\n' \ ' val = replyTextArea.val();\n' \
' if (val.charAt(val.length-1) != " ") {\n' \ ' if (val.charAt(val.length-1) != " ") {\n' \
' val += " ";\n' \ ' val += " ";\n' \
' }\n' \ ' }\n' \
' replyTextArea\n' \ ' replyTextArea.focus();\n' \
' .focus()\n' \ ' replyTextArea.val("");\n' \
' .val("")\n' \ ' replyTextArea.val(val);\n' \
' .val(val);\n' \
'}\n' \ '}\n' \
"var replyTextArea = document.getElementById('message')\n" \ "var replyTextArea = document.getElementById('message')\n" \
'replyTextArea.onFocus = function() {\n' \ 'replyTextArea.onFocus = function() {\n' \