Small improvement
authorMarcel Werk <burntime@woltlab.com>
Sat, 28 Jun 2014 19:11:53 +0000 (21:11 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 28 Jun 2014 19:11:53 +0000 (21:11 +0200)
com.woltlab.wcf/templates/attachments.tpl

index 6d632f5f0fd57e3be3b49a808fef701eda289f43..8ef265e72e5d1825c4afb9edfc0b8b39158b8836 100644 (file)
@@ -8,7 +8,7 @@
                                        {content}
                                                {foreach from=$attachmentList->getGroupedObjects($objectID) item=attachment}
                                                        {if $attachment->showAsImage() && !$attachment->isEmbedded()}
-                                                               <li class="attachmentThumbnail">
+                                                               <li class="attachmentThumbnail" data-attachment-id="{@$attachment->attachmentID}">
                                                                        {if $attachment->hasThumbnail()}
                                                                                <a href="{link controller='Attachment' object=$attachment}{/link}"{if $attachment->canDownload()} class="jsImageViewer" title="{$attachment->filename}"{/if}><img src="{link controller='Attachment' object=$attachment}thumbnail=1{/link}" alt="" style="{if $attachment->thumbnailHeight < ATTACHMENT_THUMBNAIL_HEIGHT}margin-top: {@ATTACHMENT_THUMBNAIL_HEIGHT/2-$attachment->thumbnailHeight/2}px; {/if}{if $attachment->thumbnailWidth < ATTACHMENT_THUMBNAIL_WIDTH}margin-left: {@ATTACHMENT_THUMBNAIL_WIDTH/2-$attachment->thumbnailWidth/2}px{/if}" /></a>
                                                                        {else}
@@ -37,7 +37,7 @@
                                        {content}
                                                {foreach from=$attachmentList->getGroupedObjects($objectID) item=attachment}
                                                        {if $attachment->showAsFile() && !$attachment->isEmbedded()}
-                                                               <li class="box32">
+                                                               <li class="box32" data-attachment-id="{@$attachment->attachmentID}">
                                                                        <a href="{link controller='Attachment' object=$attachment}{/link}"><span class="icon icon32 icon-paper-clip"></span></a>
                                                                        
                                                                        <div>