Changeset 20211
- Timestamp:
- Jan 17, 2013, 7:17:53 PM (11 years ago)
- Location:
- trunk/themes
- Files:
-
- 3 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/js/thumbnails.loader.js
r13452 r20211 12 12 data: { ajaxload: 'true' }, 13 13 dataType: 'json', 14 beforeSend: function(){jQuery('.loader').show()}, 14 15 success: function(result) { 15 16 img.attr('src', result.url); 17 jQuery('.loader').hide(); 16 18 }, 17 19 error: function() { 18 20 if (loop < 3) 19 21 add_thumbnail_to_queue(img, ++loop); // Retry 3 times 22 if ( typeof( error_icon ) != "undefined" ) 23 img.attr('src', error_icon); 24 jQuery('.loader').hide(); 20 25 } 21 26 }); -
trunk/themes/default/template/comment_list.tpl
r18995 r20211 10 10 {/html_style}{/strip} 11 11 {/if} 12 {footer_script}var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png"{/footer_script} 13 <div class="loader" style="display: none; position: fixed; right: 0;bottom: 0;"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> 12 14 <ul class="commentsList"> 13 15 {foreach from=$comments item=comment name=comment_loop} … … 21 23 {if !$derivative->is_cached()} 22 24 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 23 24 25 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 26 {/if} 25 27 <div class="illustration"> 26 28 <a href="{$comment.U_PICTURE}"> 27 <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.i mg_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$comment.ALT}">29 <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$comment.ALT}"> 28 30 </a> 29 31 </div> -
trunk/themes/default/template/picture_content.tpl
r16522 r20211 2 2 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 3 3 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 4 {footer_script}var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png"{/footer_script} 4 5 {/if} 5 6 6 <img {if $current.selected_derivative->is_cached()}src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()} {else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax -loader-big.gif" data-src="{$current.selected_derivative->get_url()}"{/if} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}{/if}">7 <img {if $current.selected_derivative->is_cached()}src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()} {else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif" data-src="{$current.selected_derivative->get_url()}"{/if} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}{/if}"> 7 8 8 9 {foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip}
Note: See TracChangeset
for help on using the changeset viewer.