aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/thumbnails.loader.js
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-03-01 16:26:55 +0000
committerpatdenice <patdenice@piwigo.org>2012-03-01 16:26:55 +0000
commit54ce78ca766028a5f7525297b50d38a39372818b (patch)
treef4dcfe901da5220c74a1da8b025f3fa5514d7b65 /themes/default/js/thumbnails.loader.js
parentd53c5e454a43d4b7e3cfb64f4b7d969c3819ca1c (diff)
Multisize
Bug fixed if $conf['derivative_url_style'] != 0 Create a pwg_ajax_thumbnails_loader function git-svn-id: http://piwigo.org/svn/trunk@13452 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/js/thumbnails.loader.js')
-rw-r--r--themes/default/js/thumbnails.loader.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/themes/default/js/thumbnails.loader.js b/themes/default/js/thumbnails.loader.js
index e1eba51da..9483caeb6 100644
--- a/themes/default/js/thumbnails.loader.js
+++ b/themes/default/js/thumbnails.loader.js
@@ -21,9 +21,10 @@ function add_thumbnail_to_queue(img, loop) {
});
}
-jQuery('img').each(function() {
- var img = jQuery(this);
- if (typeof img.data('src') != 'undefined') {
- add_thumbnail_to_queue(img, 0);
- }
-}); \ No newline at end of file
+function pwg_ajax_thumbnails_loader() {
+ jQuery('img[data-src]').each(function() {
+ add_thumbnail_to_queue(jQuery(this), 0);
+ });
+}
+
+jQuery(document).ready(pwg_ajax_thumbnails_loader); \ No newline at end of file