can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19188: LJSUP-8748: FriendsTimes: update page na...

Committer: dpetrov
LJSUP-8748: FriendsTimes: update page navigation
U   trunk/htdocs/js/journal.js
Modified: trunk/htdocs/js/journal.js
===================================================================
--- trunk/htdocs/js/journal.js	2011-06-01 06:53:59 UTC (rev 19187)
+++ trunk/htdocs/js/journal.js	2011-06-01 07:05:54 UTC (rev 19188)
@@ -167,15 +167,19 @@
 
 FriendsTimes = {
 	prev_page_start: null,
+	have_prev: null,
 
 	init: function() {
 		jQuery(function(){
 			FriendsTimes.checkUnreaded({
 				timeout: 5000
 			});
-			FriendsTimes.bindLoadMore({
-				max_load: 4
-			});
+
+			if( FriendsTimes.have_prev ) {
+				FriendsTimes.bindLoadMore({
+					max_load: 4
+				});
+			}
 		});
 	},
 

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