diff options
| author | 2012-12-08 17:37:08 +0100 | |
|---|---|---|
| committer | 2012-12-08 17:37:08 +0100 | |
| commit | 50b34fb414b3a5a15a445e8a71bec1efbc1ecde2 (patch) | |
| tree | 9ee2a5f1ba7819a8e55ffe8224056a2c33b30955 /public/scripts/endless_mode.js | |
| parent | ba37c6e06fc7db2d33eab0a5b120c0186039a1ca (diff) | |
Ajout mode lecture (en js par contre) fix issue #6
Diffstat (limited to 'public/scripts/endless_mode.js')
| -rw-r--r-- | public/scripts/endless_mode.js | 5 |
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; }); } |
