diff options
| author | 2013-11-08 20:32:35 +0100 | |
|---|---|---|
| committer | 2013-11-08 20:32:35 +0100 | |
| commit | 1b9f16771c9feaf44c088f58f598fcc08b7bbea8 (patch) | |
| tree | 5925f392825424ccd1d9e0c97b8f4e7cb262c5ec /public | |
| parent | 2dc26c215741e0e7a103b570cbb20fa60ed21d9d (diff) | |
Fix issue #208: chargement dynamique des jours
Les indications de jours (aujourd'hui, hier, à partir d'avant-hier) sont
maintenant chargés dynamiquement
Diffstat (limited to 'public')
| -rw-r--r-- | public/scripts/main.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/scripts/main.js b/public/scripts/main.js index e408b4dce..40c802ae7 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -477,9 +477,14 @@ function load_more_posts() { load_more = true; $('#load_more').addClass('loading'); $.get(url_load_more, function (data) { - $stream.children('.flux:last').after($('#stream', data).children('.flux')); + $stream.children('.flux:last').after($('#stream', data).children('.flux, .day')); $('.pagination').replaceWith($('.pagination', data)); + $('[id^=day_]').each(function (i) { + var ids = $('[id="' + this.id + '"]'); + if (ids.length > 1) $('[id="' + this.id + '"]:gt(0)').remove(); + }); + init_load_more(); init_lazyload(); |
