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

only load the js for the ajax loading, if one picture needs to be generated
bug:2684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/mainpage_categories.tpl

    r16505 r16522  
    1 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
    2 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    31{strip}{html_style}
    42.thumbnailCategory .illustration{ldelim}
     
    1311{foreach from=$category_thumbnails item=cat name=cat_loop}
    1412{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)}
     13{if !$derivative->is_cached()}
     14{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     15{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
     16{/if}
    1517        <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
    1618                <div class="thumbnailCategory">
Note: See TracChangeset for help on using the changeset viewer.