mirror of https://gitlab.com/bashrc2/epicyon
Focus on message
parent
e1558e9cb0
commit
6a4cf4c3b7
|
@ -1005,6 +1005,7 @@ def htmlNewPost(translate: {},baseDir: str, \
|
||||||
|
|
||||||
if not reportUrl:
|
if not reportUrl:
|
||||||
newPostForm+='<script>'+clickToDropDownScript()+cursorToEndOfMessageScript()+'</script>'
|
newPostForm+='<script>'+clickToDropDownScript()+cursorToEndOfMessageScript()+'</script>'
|
||||||
|
newPostForm=newPostForm.replace('<body>','<body onload="focusOnMessage()">')
|
||||||
|
|
||||||
newPostForm+=htmlFooter()
|
newPostForm+=htmlFooter()
|
||||||
return newPostForm
|
return newPostForm
|
||||||
|
@ -1385,8 +1386,8 @@ def cursorToEndOfMessageScript() -> str:
|
||||||
' var theVal = replyTextArea.value;\n' \
|
' var theVal = replyTextArea.value;\n' \
|
||||||
' replyTextArea.value = theVal;\n' \
|
' replyTextArea.value = theVal;\n' \
|
||||||
'}\n' \
|
'}\n' \
|
||||||
'window.onload = function() {\n' \
|
'function focusOnMessage() {\n' \
|
||||||
" document.getElementById('message').focus();\n" \
|
" document.getElementById('message').focus()\n" \
|
||||||
'}\n'
|
'}\n'
|
||||||
return script
|
return script
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue