A free, self-hostable news aggregator…
Issue #125 : "suivant" charge articles suivants
Marien Fressinaudaa94bdaeff37
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtmlindex e81ae831a..c60093504 100644--- a/app/views/javascript/main.phtml+++ b/app/views/javascript/main.phtml@@ -122,8 +122,13 @@ function prev_entry() {function next_entry() {old_active = $(".flux.active");first_active = $(".flux:first");+ 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 &&