mirror of https://gitlab.com/bashrc2/epicyon
Check the length of the text in textarea
parent
ff138fb6ca
commit
c06e4183b6
|
@ -1384,7 +1384,7 @@ def cursorToEndOfMessageScript() -> str:
|
|||
'function focusOnMessage() {\n' \
|
||||
" var replyTextArea = document.getElementById('message');\n" \
|
||||
' val = replyTextArea.value;\n' \
|
||||
' if (val.charAt(val.length-1) != " ") {\n' \
|
||||
' if (val.length>0) && (val.charAt(val.length-1) != " ") {\n' \
|
||||
' val += " ";\n' \
|
||||
' }\n' \
|
||||
' replyTextArea.focus();\n' \
|
||||
|
|
Loading…
Reference in New Issue