aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/javascript')
-rw-r--r--app/views/javascript/main.phtml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index 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 &&