- Timestamp:
- Mar 1, 2012, 5:26:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/derivative.inc.php
r13444 r13452 100 100 101 101 private $params; 102 private $rel_path, $rel_url, $is_cached ;102 private $rel_path, $rel_url, $is_cached=true; 103 103 104 104 function __construct($type, $src_image) … … 161 161 $params = null; 162 162 $rel_path = $rel_url = $src->rel_path; 163 $is_cached = true;164 163 return; 165 164 } … … 198 197 else 199 198 { 200 $is_cached = true;201 199 $url_style = 1; 202 200 } -
trunk/themes/default/js/thumbnails.loader.js
r13444 r13452 22 22 } 23 23 24 jQuery('img').each(function() { 25 var img = jQuery(this); 26 if (typeof img.data('src') != 'undefined') { 27 add_thumbnail_to_queue(img, 0); 28 } 29 }); 24 function pwg_ajax_thumbnails_loader() { 25 jQuery('img[data-src]').each(function() { 26 add_thumbnail_to_queue(jQuery(this), 0); 27 }); 28 } 29 30 jQuery(document).ready(pwg_ajax_thumbnails_loader); -
trunk/themes/default/template/thumbnails.tpl
r13444 r13452 1 1 {if !empty($thumbnails)}{strip} 2 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load=' async'}3 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load=' async'}2 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 3 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 4 4 {*define_derivative name='derivative_params' width=160 height=90 crop=true*} 5 5 {html_style}
Note: See TracChangeset
for help on using the changeset viewer.