From 6d4d4e8ba63e8703082216140576e81d32b0a9d4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 9 Nov 2014 17:34:57 -0800 Subject: [PATCH] Update IP count in original post form. --- src/Monitoring/ThreadUpdater.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 723dffcc0..d50ec4e19 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -333,6 +333,11 @@ ThreadUpdater = else Header.scrollTo root if root + # Update IP count in original post form. + if ipCountEl = $.id('unique-ips') + ipCountEl.textContent = OP.unique_ips + ipCountEl.nextSibling.nodeValue = ipCountEl.nextSibling.nodeValue.replace(/^( unique poster)s?/, if OP.unique_ips > 1 then '$1s' else '$1') + $.event 'ThreadUpdate', 404: false threadID: ThreadUpdater.thread.fullID