diff options
| author | 2013-06-14 20:45:00 +0200 | |
|---|---|---|
| committer | 2013-06-14 20:45:00 +0200 | |
| commit | 1d459af0464eb2cdbdaaaf1122e1681210fdffea (patch) | |
| tree | a803a6f2fbad70fbbf2bfd6c2a1b33daedbfacca /app/views/javascript/main.phtml | |
| parent | 746ae4b33a2e7a83d2623291c02d7b4292247103 (diff) | |
Fix issue #75 : chargement des images en lazyload, reste à le rendre optionnel
Diffstat (limited to 'app/views/javascript/main.phtml')
| -rw-r--r-- | app/views/javascript/main.phtml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index e6c882333..443f62c31 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -109,8 +109,8 @@ function mark_favorite (active) { } function init_img () { - $(".flux .content img").each (function () { - if ($(this).width () > ($("#stream .content").width()) / 2) { + $(".flux_content .content img").each (function () { + if ($(this).width () > ($(".flux_content .content").width()) / 2) { $(this).addClass("big"); } }); @@ -125,6 +125,8 @@ function init_posts () { <?php } ?> init_img (); + // TODO rendre optionnel + $(".flux .content img").lazyload(); if (hide_posts) { $(".flux:not(.active) .flux_content").hide (); |
