don't show subject field for replies to thread
This commit is contained in:
parent
5ed247c09d
commit
d59f9721eb
@ -869,6 +869,9 @@ span.hide-announcement {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
}
|
||||
#qr.reply-to-thread input[data-name=sub] {
|
||||
display: none;
|
||||
}
|
||||
#qr textarea.field {
|
||||
height: 14.8em;
|
||||
min-height: 9em;
|
||||
|
||||
@ -424,6 +424,7 @@ QR =
|
||||
g.THREADID
|
||||
else
|
||||
'new'
|
||||
(if g.VIEW is 'thread' then $.addClass else $.rmClass) QR.nodes.el, 'reply-to-thread'
|
||||
|
||||
dialog: ->
|
||||
QR.nodes = nodes =
|
||||
@ -520,7 +521,7 @@ QR =
|
||||
$.on nodes.fileInput, 'change', QR.handleFiles
|
||||
|
||||
# save selected post's data
|
||||
items = ['name', 'email', 'sub', 'com', 'filename', 'flag']
|
||||
items = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag']
|
||||
i = 0
|
||||
save = -> QR.selected.save @
|
||||
while name = items[i++]
|
||||
|
||||
@ -118,6 +118,7 @@ QR.post = class
|
||||
for name in ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag']
|
||||
continue unless node = QR.nodes[name]
|
||||
node.value = @[name] or node.dataset.default or null
|
||||
(if @thread isnt 'new' then $.addClass else $.rmClass) QR.nodes.el, 'reply-to-thread'
|
||||
@showFileData()
|
||||
QR.characterCount()
|
||||
|
||||
@ -129,6 +130,7 @@ QR.post = class
|
||||
@[name] = input.value or input.dataset.default or null
|
||||
switch name
|
||||
when 'thread'
|
||||
(if @thread isnt 'new' then $.addClass else $.rmClass) QR.nodes.el, 'reply-to-thread'
|
||||
QR.status()
|
||||
when 'com'
|
||||
@nodes.span.textContent = @com
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user