The file stats won't go red anymore in stickies.

This commit is contained in:
Nicolas Stepien 2013-02-23 01:00:51 +01:00
parent 9725a26807
commit ca265fc7a1
3 changed files with 12 additions and 4 deletions

View File

@ -5088,7 +5088,7 @@
return $.add(d.body, ThreadStats.dialog); return $.add(d.body, ThreadStats.dialog);
}, },
update: function() { update: function() {
var ID, fileCount, post, postCount, _ref; var ID, fileCount, funk, post, postCount, _ref;
postCount = 0; postCount = 0;
fileCount = 0; fileCount = 0;
_ref = ThreadStats.thread.posts; _ref = ThreadStats.thread.posts;
@ -5105,7 +5105,8 @@
} }
ThreadStats.postCountEl.textContent = postCount; ThreadStats.postCountEl.textContent = postCount;
ThreadStats.fileCountEl.textContent = fileCount; 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');
} }
}; };

View File

@ -28,13 +28,16 @@ beta
Read posts won't be marked as unread after reloading a thread. Read posts won't be marked as unread after reloading a thread.
Visible posts will not be taken into account towards the unread count. 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: Thread/Post Hiding changes:
Added Thread & Post Hiding in the Menu, with individual settings. Added Thread & Post Hiding in the Menu, with individual settings.
Thread & Post Hiding Buttons can now be disabled in the settings. Thread & Post Hiding Buttons can now be disabled in the settings.
Recursive Hiding will be automatically applied when manually hiding a post. Recursive Hiding will be automatically applied when manually hiding a post.
Added touch and multi-touch support for dragging windows. Added touch and multi-touch support for dragging windows.
Thread Stats post and file count will adjust with deleted posts.
Added [math] tags keybind. Added [math] tags keybind.
Fix Chrome's install warning saying that 4chan X would execute on all domains. Fix Chrome's install warning saying that 4chan X would execute on all domains.
Fix Quote Backlinks not affecting inlined quotes. Fix Quote Backlinks not affecting inlined quotes.

View File

@ -3427,7 +3427,11 @@ ThreadStats =
fileCount++ fileCount++
ThreadStats.postCountEl.textContent = postCount ThreadStats.postCountEl.textContent = postCount
ThreadStats.fileCountEl.textContent = fileCount 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 = ThreadUpdater =
init: -> init: ->