Changeset 16688 for extensions/UserCollections/template/thumbnails.tpl
- Timestamp:
- Jul 13, 2012, 12:09:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/template/thumbnails.tpl
r16658 r16688 5 5 rel: ".preview-box", 6 6 title: function() {ldelim} 7 return $(this).attr("title") +' · <a href="'+ $(this).data('url') +'" target="_blank">{'jump to photo'|@translate} →</a>'; 7 var title = $(this).attr("title"); 8 {if $F_ACTION} title+= ' · <a href="{$collection_toggle_url}&collection_toggle='+ $(this).data('id') +'" class="addCollection" data-id="'+ $(this).data('id') +'">{'Remove from collection'|@translate}</a>';{/if} 9 title+= ' · <a href="'+ $(this).data('url') +'" target="_blank">{'jump to photo'|@translate} →</a>'; 10 return title; 8 11 } 12 }); 13 jQuery(document).on("click", "#cboxTitle .addCollection", function() {ldelim} 14 jQuery.colorbox.close(); 15 jQuery("#thumbnails a.addCollection[data-id='"+ $(this).data('id')+"']").trigger("click"); 16 return false; 9 17 }); 10 18 {/footer_script} … … 42 50 <span class="wrap1"> 43 51 <span class="wrap2"> 44 <a href="{$thumbnail.FILE_SRC}" class="preview-box" title="{$thumbnail.NAME}" data-url="{$thumbnail.URL}" >52 <a href="{$thumbnail.FILE_SRC}" class="preview-box" title="{$thumbnail.NAME}" data-url="{$thumbnail.URL}" data-id="{$thumbnail.id}"> 45 53 <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 46 54 </a>
Note: See TracChangeset
for help on using the changeset viewer.