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