Przeglądaj źródła

Merge branch 'patch-1' of github.com:Alkarex/FreshRSS into Alkarex-patch-doublon-autochargement

Marien Fressinaud 12 lat temu
rodzic
commit
b0db5ce2b3
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      app/views/javascript/main.phtml

+ 6 - 4
app/views/javascript/main.phtml

@@ -143,16 +143,18 @@ function next_entry() {
 	last_active = $(".flux:last");
 	new_active = old_active.nextAll (".flux:first");
 
-	if(last_active.attr("id") == new_active.attr("id")) {
-		load_more_posts ();
-	}
-
 	if (new_active.hasClass("flux")) {
 		toggleContent (new_active, old_active);
 	} else if (old_active[0] === undefined &&
 	           new_active[0] === undefined) {
 		toggleContent (first_active, old_active);
 	}
+
+	<?php if ($auto_load_more !== 'yes') { ?>
+	if(last_active.attr("id") == new_active.attr("id")) {
+		load_more_posts ();
+	}
+	<?php } ?>
 }
 
 function init_img () {