Add autocomplete when creating posts

merge-requests/21/head
Bob Mottram 2021-02-28 14:48:41 +00:00
parent 1b67716789
commit 12d80d79d3
2 changed files with 6 additions and 4 deletions

View File

@ -425,7 +425,7 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
'<br>' '<br>'
editLinksForm += \ editLinksForm += \
' <textarea id="message" name="editedAbout" ' + \ ' <textarea id="message" name="editedAbout" ' + \
'style="height:100vh" spellcheck="true">' + \ 'style="height:100vh" spellcheck="true" autocomplete="on">' + \
aboutStr + '</textarea>' aboutStr + '</textarea>'
editLinksForm += \ editLinksForm += \
'</div>' '</div>'
@ -444,7 +444,7 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
'<br>' '<br>'
editLinksForm += \ editLinksForm += \
' <textarea id="message" name="editedTOS" ' + \ ' <textarea id="message" name="editedTOS" ' + \
'style="height:100vh" spellcheck="true">' + \ 'style="height:100vh" spellcheck="true" autocomplete="on">' + \
TOSStr + '</textarea>' TOSStr + '</textarea>'
editLinksForm += \ editLinksForm += \
'</div>' '</div>'

View File

@ -555,7 +555,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
dateAndLocation += \ dateAndLocation += \
' <textarea id="message" ' + \ ' <textarea id="message" ' + \
'name="repliesModerationOption" style="height:' + \ 'name="repliesModerationOption" style="height:' + \
str(messageBoxHeight) + 'px" spellcheck="true"></textarea>\n' str(messageBoxHeight) + 'px" spellcheck="true" ' + \
'autocomplete="on"></textarea>\n'
dateAndLocation += '</div>\n' dateAndLocation += '</div>\n'
dateAndLocation += '<div class="container">\n' dateAndLocation += '<div class="container">\n'
dateAndLocation += '<label class="labels">' + \ dateAndLocation += '<label class="labels">' + \
@ -753,7 +754,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
newPostForm += \ newPostForm += \
' <textarea id="message" name="message" style="height:' + \ ' <textarea id="message" name="message" style="height:' + \
str(messageBoxHeight) + 'px"' + selectedStr + ' spellcheck="true">' + \ str(messageBoxHeight) + 'px"' + selectedStr + \
' spellcheck="true" autocomplete="on">' + \
'</textarea>\n' '</textarea>\n'
newPostForm += extraFields + citationsStr + dateAndLocation newPostForm += extraFields + citationsStr + dateAndLocation
if not mediaInstance or replyStr: if not mediaInstance or replyStr: