summaryrefslogtreecommitdiff
path: root/public/scripts/endless_mode.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/scripts/endless_mode.js')
-rw-r--r--public/scripts/endless_mode.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/scripts/endless_mode.js b/public/scripts/endless_mode.js
index 30b91822c..7a9840cd4 100644
--- a/public/scripts/endless_mode.js
+++ b/public/scripts/endless_mode.js
@@ -10,7 +10,7 @@ function load_more_refresh () {
}
}
-function load_more_posts () {
+function load_more_posts (f_callback) {
load = true;
$.get (url_next_page, function (data) {
$("#load_more").before ($("#stream .post", data));
@@ -19,6 +19,9 @@ function load_more_posts () {
init_posts ();
load_more_refresh ();
+ if (typeof f_callback == 'function') {
+ f_callback.call (this);
+ }
load = false;
});
}