forked from indymedia/epicyon
Explicit function calls
parent
c21186e901
commit
65541aff98
|
@ -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' \
|
||||||
|
|
Loading…
Reference in New Issue