Ignore:
Timestamp:
Jul 9, 2012, 10:03:44 AM (12 years ago)
Author:
flop25
Message:

merge r16522 from branch 2.4 to trunk
only load the js for the ajax loading, if one picture needs to be generated
bug:2684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/themes/default/template/thumbnails.tpl

    r16506 r16523  
    11{if !empty($thumbnails)}{strip}
    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'}
    42{*define_derivative name='derivative_params' width=160 height=90 crop=true*}
    53{html_style}
     
    2624{foreach from=$thumbnails item=thumbnail}
    2725{assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)}
    28         <li>
     26{if !$derivative->is_cached()}
     27{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     28{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
     29{/if}
     30<li>
    2931        <span class="wrap1">
    3032                <span class="wrap2">
Note: See TracChangeset for help on using the changeset viewer.