Add global setting to disable Reply Pruning entirely.

This commit is contained in:
ccd0 2016-04-02 22:47:02 -07:00
parent ea2b28f9b1
commit 7337412c35
2 changed files with 7 additions and 2 deletions

View File

@ -405,6 +405,10 @@ Config =
false
'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':
'Quick Reply': [

View File

@ -1,6 +1,8 @@
ReplyPruning =
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'
el = $.el 'span',
@ -38,7 +40,6 @@ ReplyPruning =
ReplyPruning.update()
setEnabled: ->
ReplyPruning.container or= $.frag()
onOff = if Conf['Prune Replies'] then $.on else $.off
onOff ReplyPruning.inputs.replies, 'change', ReplyPruning.update
onOff d, 'ThreadUpdate', ReplyPruning.update