IP Count bugfixes.
This commit is contained in:
parent
1bfffa37a5
commit
2fa6333ca3
@ -63,8 +63,8 @@ ThreadStats =
|
|||||||
{thread, postCountEl, fileCountEl, ipCountEl} = ThreadStats
|
{thread, postCountEl, fileCountEl, ipCountEl} = ThreadStats
|
||||||
postCountEl.textContent = postCount
|
postCountEl.textContent = postCount
|
||||||
fileCountEl.textContent = fileCount
|
fileCountEl.textContent = fileCount
|
||||||
if Conf["IP Count in Stats"]
|
if ipCount? and Conf["IP Count in Stats"]
|
||||||
ipCountEl.textContent = if ipCount? then ipCount else '?'
|
ipCountEl.textContent = ipCount
|
||||||
(if thread.postLimit and !thread.isSticky then $.addClass else $.rmClass) postCountEl, 'warning'
|
(if thread.postLimit and !thread.isSticky then $.addClass else $.rmClass) postCountEl, 'warning'
|
||||||
(if thread.fileLimit and !thread.isSticky then $.addClass else $.rmClass) fileCountEl, 'warning'
|
(if thread.fileLimit and !thread.isSticky then $.addClass else $.rmClass) fileCountEl, 'warning'
|
||||||
|
|
||||||
|
|||||||
@ -334,10 +334,10 @@ ThreadUpdater =
|
|||||||
Header.scrollTo root if root
|
Header.scrollTo root if root
|
||||||
|
|
||||||
# Update IP count in original post form.
|
# Update IP count in original post form.
|
||||||
if ipCountEl = $.id('unique-ips')
|
if OP.unique_ips? and ipCountEl = $.id('unique-ips')
|
||||||
ipCountEl.textContent = OP.unique_ips
|
ipCountEl.textContent = OP.unique_ips
|
||||||
ipCountEl.previousSibling.textContent = ipCountEl.previousSibling.textContent.replace(/\b(?:is|are)\b/, if OP.unique_ips > 1 then 'are' else 'is')
|
ipCountEl.previousSibling.textContent = ipCountEl.previousSibling.textContent.replace(/\b(?:is|are)\b/, if OP.unique_ips is 1 then 'is' else 'are')
|
||||||
ipCountEl.nextSibling.textContent = ipCountEl.nextSibling.textContent.replace(/\bposters?\b/, if OP.unique_ips > 1 then 'posters' else 'poster')
|
ipCountEl.nextSibling.textContent = ipCountEl.nextSibling.textContent.replace(/\bposters?\b/, if OP.unique_ips is 1 then 'poster' else 'posters')
|
||||||
|
|
||||||
$.event 'ThreadUpdate',
|
$.event 'ThreadUpdate',
|
||||||
404: false
|
404: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user