Add global setting to disable Reply Pruning entirely.
This commit is contained in:
parent
ea2b28f9b1
commit
7337412c35
@ -405,6 +405,10 @@ Config =
|
|||||||
false
|
false
|
||||||
'Label each post from a new IP with the thread\'s current IP count.'
|
'Label each post from a new IP with the thread\'s current IP count.'
|
||||||
]
|
]
|
||||||
|
'Reply Pruning': [
|
||||||
|
true
|
||||||
|
'Hide old replies in long threads. Number of replies shown can be set from header menu. Not compatible with Quote Threading.'
|
||||||
|
]
|
||||||
|
|
||||||
'Posting and Captchas':
|
'Posting and Captchas':
|
||||||
'Quick Reply': [
|
'Quick Reply': [
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
ReplyPruning =
|
ReplyPruning =
|
||||||
init: ->
|
init: ->
|
||||||
return unless g.VIEW is 'thread' and not Conf['Quote Threading']
|
return unless g.VIEW is 'thread' and Conf['Reply Pruning'] and not Conf['Quote Threading']
|
||||||
|
|
||||||
|
@container = $.frag()
|
||||||
|
|
||||||
label = UI.checkbox 'Prune Replies', 'Show Last'
|
label = UI.checkbox 'Prune Replies', 'Show Last'
|
||||||
el = $.el 'span',
|
el = $.el 'span',
|
||||||
@ -38,7 +40,6 @@ ReplyPruning =
|
|||||||
ReplyPruning.update()
|
ReplyPruning.update()
|
||||||
|
|
||||||
setEnabled: ->
|
setEnabled: ->
|
||||||
ReplyPruning.container or= $.frag()
|
|
||||||
onOff = if Conf['Prune Replies'] then $.on else $.off
|
onOff = if Conf['Prune Replies'] then $.on else $.off
|
||||||
onOff ReplyPruning.inputs.replies, 'change', ReplyPruning.update
|
onOff ReplyPruning.inputs.replies, 'change', ReplyPruning.update
|
||||||
onOff d, 'ThreadUpdate', ReplyPruning.update
|
onOff d, 'ThreadUpdate', ReplyPruning.update
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user