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/comment_list.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{if isset($comment_derivative_params)}
    42{strip}{html_style}
     
    1614<li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
    1715        {if isset($comment.src_image)}
    18     {if isset($comment_derivative_params)}
    19     {assign var=derivative value=$pwg->derivative($comment_derivative_params, $comment.src_image)}
    20     {else}
    21     {assign var=derivative value=$pwg->derivative($derivative_params, $comment.src_image)}
    22     {/if}
     16        {if isset($comment_derivative_params)}
     17        {assign var=derivative value=$pwg->derivative($comment_derivative_params, $comment.src_image)}
     18        {else}
     19        {assign var=derivative value=$pwg->derivative($derivative_params, $comment.src_image)}
     20        {/if}
     21        {if !$derivative->is_cached()}
     22        {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     23        {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
     24        {/if}
    2325        <div class="illustration">
    2426                <a href="{$comment.U_PICTURE}">
Note: See TracChangeset for help on using the changeset viewer.