Default delections when making new post

main
Bob Mottram 2020-06-26 10:30:29 +00:00
parent 8e6e32bd89
commit fc2b9d333b
1 changed files with 6 additions and 4 deletions

View File

@ -2081,6 +2081,7 @@ def htmlNewPost(mediaInstance: bool, translate: {},
newPostForm += ' <input type="text" name="subject">'
newPostForm += ''
selectedStr = ' selected'
if inReplyTo or endpoint == 'newdm':
if inReplyTo:
newPostForm += \
@ -2088,12 +2089,13 @@ def htmlNewPost(mediaInstance: bool, translate: {},
'</label><br>'
else:
newPostForm += \
' <label class="labels">' + translate['Send to'] + \
'</label><br>'
' <label class="labels">' + \
translate['Send to'] + ':' + '</label><br>'
newPostForm += \
' <input type="text" name="mentions" value="' + \
mentionsStr + '">'
mentionsStr + '" selected>'
newPostForm += ''
selectedStr = ''
newPostForm += \
' <br><label class="labels">' + placeholderMessage + '</label>'
@ -2108,7 +2110,7 @@ def htmlNewPost(mediaInstance: bool, translate: {},
newPostForm += \
' <textarea id="message" name="message" style="height:' + \
str(messageBoxHeight) + 'px"></textarea>\n'
str(messageBoxHeight) + 'px"' + selectedStr + '></textarea>\n'
newPostForm += extraFields+dateAndLocation
if not mediaInstance or replyStr:
newPostForm += newPostImageSection