From 3602d49396711a247201d26ac4d739d08cf27e25 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 9 Nov 2014 22:37:53 -0800 Subject: [PATCH] Update to new 'There are ... posters' wording of original post form. --- src/Monitoring/ThreadUpdater.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index d50ec4e19..779d3a2fe 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -336,7 +336,8 @@ ThreadUpdater = # 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') + ipCountEl.previousSibling.textContent = ipCountEl.previousSibling.textContent.replace(/\b(?:is|are)\b/, if OP.unique_ips > 1 then 'are' else 'is') + ipCountEl.nextSibling.textContent = ipCountEl.nextSibling.textContent.replace(/\bposters?\b/, if OP.unique_ips > 1 then 'posters' else 'poster') $.event 'ThreadUpdate', 404: false