From 49adb99ae92ea7a22f4b4dd66e140fb3ffe2c543 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 5 Jun 2016 02:56:53 -0700 Subject: [PATCH] Don't try to use getElementById on non-document. --- src/Monitoring/ReplyPruning.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monitoring/ReplyPruning.coffee b/src/Monitoring/ReplyPruning.coffee index 87a67bf83..3c9524f73 100644 --- a/src/Monitoring/ReplyPruning.coffee +++ b/src/Monitoring/ReplyPruning.coffee @@ -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