The file stats won't go red anymore in stickies.
This commit is contained in:
parent
9725a26807
commit
ca265fc7a1
@ -5088,7 +5088,7 @@
|
||||
return $.add(d.body, ThreadStats.dialog);
|
||||
},
|
||||
update: function() {
|
||||
var ID, fileCount, post, postCount, _ref;
|
||||
var ID, fileCount, funk, post, postCount, _ref;
|
||||
postCount = 0;
|
||||
fileCount = 0;
|
||||
_ref = ThreadStats.thread.posts;
|
||||
@ -5105,7 +5105,8 @@
|
||||
}
|
||||
ThreadStats.postCountEl.textContent = postCount;
|
||||
ThreadStats.fileCountEl.textContent = fileCount;
|
||||
return (fileCount > ThreadStats.fileLimit ? $.addClass : $.rmClass)(ThreadStats.fileCountEl, 'warning');
|
||||
funk = ThreadStats.isSticky || fileCount <= ThreadStats.fileLimit ? $.rmClass : $.addClass;
|
||||
return funk(ThreadStats.fileCountEl, 'warning');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -28,13 +28,16 @@ beta
|
||||
Read posts won't be marked as unread after reloading a thread.
|
||||
Visible posts will not be taken into account towards the unread count.
|
||||
|
||||
Thread Stats changes:
|
||||
Post and file count will now adjust with deleted posts.
|
||||
The file count will not go red anymore when the thread is a sticky.
|
||||
|
||||
Thread/Post Hiding changes:
|
||||
Added Thread & Post Hiding in the Menu, with individual settings.
|
||||
Thread & Post Hiding Buttons can now be disabled in the settings.
|
||||
Recursive Hiding will be automatically applied when manually hiding a post.
|
||||
|
||||
Added touch and multi-touch support for dragging windows.
|
||||
Thread Stats post and file count will adjust with deleted posts.
|
||||
Added [math] tags keybind.
|
||||
Fix Chrome's install warning saying that 4chan X would execute on all domains.
|
||||
Fix Quote Backlinks not affecting inlined quotes.
|
||||
|
||||
@ -3427,7 +3427,11 @@ ThreadStats =
|
||||
fileCount++
|
||||
ThreadStats.postCountEl.textContent = postCount
|
||||
ThreadStats.fileCountEl.textContent = fileCount
|
||||
(if fileCount > ThreadStats.fileLimit then $.addClass else $.rmClass) ThreadStats.fileCountEl, 'warning'
|
||||
funk = if ThreadStats.isSticky or fileCount <= ThreadStats.fileLimit
|
||||
$.rmClass
|
||||
else
|
||||
$.addClass
|
||||
funk ThreadStats.fileCountEl, 'warning'
|
||||
|
||||
ThreadUpdater =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user