forked from indymedia/epicyon
Get message by id
parent
6e0e8b0d12
commit
ed24695339
|
@ -1004,7 +1004,7 @@ def htmlNewPost(translate: {},baseDir: str, \
|
||||||
'</form>'
|
'</form>'
|
||||||
|
|
||||||
if not reportUrl:
|
if not reportUrl:
|
||||||
newPostForm+='<script>'+clickToDropDownScript()+cursorToEndOfTextScript()+'</script>'
|
newPostForm+='<script>'+clickToDropDownScript()+cursorToEndOfMessageScript()+'</script>'
|
||||||
|
|
||||||
newPostForm+=htmlFooter()
|
newPostForm+=htmlFooter()
|
||||||
return newPostForm
|
return newPostForm
|
||||||
|
@ -1375,13 +1375,12 @@ def clickToDropDownScript() -> str:
|
||||||
#'}'
|
#'}'
|
||||||
return script
|
return script
|
||||||
|
|
||||||
def cursorToEndOfTextScript() -> str:
|
def cursorToEndOfMessageScript() -> str:
|
||||||
"""Moves the cursor to the end of the text in a textarea
|
"""Moves the cursor to the end of the text in a textarea
|
||||||
This avoids the cursor being in the wrong position when replying
|
This avoids the cursor being in the wrong position when replying
|
||||||
"""
|
"""
|
||||||
script = \
|
script = \
|
||||||
"var replyTextArea = document.getElementByName('message');" \
|
"var replyTextArea = document.getElementById('message');" \
|
||||||
'' \
|
|
||||||
'replyTextArea.onFocus = function() {' \
|
'replyTextArea.onFocus = function() {' \
|
||||||
' var theVal = replyTextArea.value;' \
|
' var theVal = replyTextArea.value;' \
|
||||||
' replyTextArea.value = theVal;' \
|
' replyTextArea.value = theVal;' \
|
||||||
|
|
Loading…
Reference in New Issue