can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19514: LJSUP-9176: LJ-Like: Problems with loadi...

Committer: dpetrov
LJSUP-9176: LJ-Like: Problems with loading buttons in LJ-like ?\226?\128?\148 the 2nd step
U   trunk/htdocs/js/journal.js
Modified: trunk/htdocs/js/journal.js
===================================================================
--- trunk/htdocs/js/journal.js	2011-07-22 08:59:51 UTC (rev 19513)
+++ trunk/htdocs/js/journal.js	2011-07-22 09:01:08 UTC (rev 19514)
@@ -343,13 +343,14 @@
 				FriendsTimes.fetchContent( { to: prev_page_start },
 					function( node, li, scripts ) {
 						if( li ) {
+							loaded_count++;
 							list.append( li ).append( scripts );
 							LiveJournal.parseLikeButtons();
 							prev_page_start = node.attr( 'data-prev-page-start' );
 							have_prev = parseInt( node.attr( 'data-have-prev' ), 10 );
 
 							if (loaded_count < conf.max_load) {
-								if( !have_prev ) {
+								if( have_prev ) {
 									$window.scroll(loading_more);
 								} else {
 									more_node.remove();

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments