From ed24695339cc8b77c0c48e5fceab674ee3923f54 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Sep 2019 10:26:52 +0100 Subject: [PATCH] Get message by id --- webinterface.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index c8909082..7205806b 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1004,7 +1004,7 @@ def htmlNewPost(translate: {},baseDir: str, \ '' if not reportUrl: - newPostForm+='' + newPostForm+='' newPostForm+=htmlFooter() return newPostForm @@ -1375,13 +1375,12 @@ def clickToDropDownScript() -> str: #'}' return script -def cursorToEndOfTextScript() -> str: +def cursorToEndOfMessageScript() -> str: """Moves the cursor to the end of the text in a textarea This avoids the cursor being in the wrong position when replying """ script = \ - "var replyTextArea = document.getElementByName('message');" \ - '' \ + "var replyTextArea = document.getElementById('message');" \ 'replyTextArea.onFocus = function() {' \ ' var theVal = replyTextArea.value;' \ ' replyTextArea.value = theVal;' \