Check the length of the text in textarea

main2
Bob Mottram 2019-09-22 12:25:48 +01:00
parent ff138fb6ca
commit c06e4183b6
1 changed files with 1 additions and 1 deletions

View File

@ -1384,7 +1384,7 @@ def cursorToEndOfMessageScript() -> str:
'function focusOnMessage() {\n' \ 'function focusOnMessage() {\n' \
" var replyTextArea = document.getElementById('message');\n" \ " var replyTextArea = document.getElementById('message');\n" \
' val = replyTextArea.value;\n' \ ' val = replyTextArea.value;\n' \
' if (val.charAt(val.length-1) != " ") {\n' \ ' if (val.length>0) && (val.charAt(val.length-1) != " ") {\n' \
' val += " ";\n' \ ' val += " ";\n' \
' }\n' \ ' }\n' \
' replyTextArea.focus();\n' \ ' replyTextArea.focus();\n' \