mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 10:46:02 +00:00
update_right_panel_unread_count() bug fix. Now it counts comments on any tree level.
This commit is contained in:
parent
07b6a8d8bf
commit
fe15a1633f
|
@ -734,7 +734,7 @@ function create_comment_elements(commentData, onCommentCreated) {
|
||||||
* @param {?object} $span jQuery object of unread count <span>
|
* @param {?object} $span jQuery object of unread count <span>
|
||||||
*/
|
*/
|
||||||
function update_right_panel_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') {
|
if (typeof $span === 'undefined') {
|
||||||
$span = $('#pp-unread-count');
|
$span = $('#pp-unread-count');
|
||||||
|
|
Loading…
Reference in a new issue