Don't try to use getElementById on non-document.

This commit is contained in:
ccd0 2016-06-05 02:56:53 -07:00
parent 1178476a3f
commit 49adb99ae9

View File

@ -50,7 +50,7 @@ ReplyPruning =
ReplyPruning.active = @checked
showIfHidden: (id) ->
if ReplyPruning.container?.getElementById id
if ReplyPruning.container and $("##{id}", ReplyPruning.container)
ReplyPruning.inputs.enabled.checked = false
$.event 'change', null, ReplyPruning.inputs.enabled