forked from indymedia/epicyon
Default delections when making new post
parent
8e6e32bd89
commit
fc2b9d333b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue