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