Skip to content

Commit

Permalink
* Also, probably useless, but in case an infinite page takes time to …
Browse files Browse the repository at this point in the history
…show, we might want to show an Ajax loader. I'm not sure it'll work though, with all of the DOM manipulations going around... But at least it doesn't break anything, so might as well do it. (topic.js)
  • Loading branch information
Nao committed Oct 28, 2014
1 parent 86a67d1 commit 0acaa37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/javascript/topic.js
Expand Up @@ -172,6 +172,7 @@ $(window).load(function ()
// Did we reach the end of the page..?
if (ready_to_show && $(window).scrollTop() >= $(document).height() - $(window).height())
{
show_ajax();
requested = false;
ready_to_show = false;

Expand Down Expand Up @@ -201,6 +202,7 @@ $(window).load(function ()

// Prepare all new posts for follow_me and relative dates.
page_showing();
hide_ajax();
}
});
});
Expand Down

0 comments on commit 0acaa37

Please sign in to comment.