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