From 61eee22cd8bd6bd4680e292982d354fd6a2e09ba Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Tue, 24 Jun 2014 10:03:09 +0400 Subject: [PATCH] bug fixed --- js/twister_timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/twister_timeline.js b/js/twister_timeline.js index b3b6c59..fb76e58 100644 --- a/js/twister_timeline.js +++ b/js/twister_timeline.js @@ -282,7 +282,7 @@ function processNewPostsConfirmation(expected, posts) _newPostsPending += posts.length; //we don't want to produce alert for the posts that won't be displayed - var p2h = 0; + var p2h = 1; for( var i = posts.length-1; i >= 0; i-- ) { if (willBeHidden(posts[i])) { //posts.splice(i, 1); @@ -291,7 +291,7 @@ function processNewPostsConfirmation(expected, posts) } _newPostsPending += posts.length - p2h; if( _newPostsPending ) { - $.MAL.reportNewPosts(_newPostsPending - 1); + $.MAL.reportNewPosts(_newPostsPending); } if( posts.length < expected ) { // new DMs have probably been produced by users we follow.