update_right_panel_unread_count() bug fix. Now it counts comments on any tree level.

This commit is contained in:
Alexey Skobkin 2016-05-15 22:19:46 +03:00
parent 07b6a8d8bf
commit fe15a1633f
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ function create_comment_elements(commentData, onCommentCreated) {
* @param {?object} $span jQuery object of unread count <span>
*/
function update_right_panel_unread_count($span) {
var unread_count = $('#comments').children('div.post.unread').length;
var unread_count = $('#comments').find('div.post.unread').length;
if (typeof $span === 'undefined') {
$span = $('#pp-unread-count');