Add `type="button"` to jsButtonAttachmentInsertThumbnail
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 16 Sep 2022 10:53:11 +0000 (12:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 16 Sep 2022 10:53:11 +0000 (12:53 +0200)
This was missed in 35c59174f69bbaca5bc72c3a49beb886594ada11.

com.woltlab.wcf/templates/messageFormAttachments.tpl

index e4a9c4ffeb777193f06223a28c26e02e53e62696..d7d4c968306f5e63ca3e52c7e3a3bbd82cc8550d 100644 (file)
@@ -17,7 +17,7 @@
                                        <ul class="buttonGroup">
                                                <li><button type="button" class="button small jsObjectAction" data-object-action="delete" data-confirm-message="{lang}wcf.attachment.delete.sure{/lang}">{lang}wcf.global.button.delete{/lang}</button></li>
                                                {if $attachment->isImage}
-                                                       {if $attachment->thumbnailType}<li><button class="button small jsButtonAttachmentInsertThumbnail" data-object-id="{@$attachment->attachmentID}" data-url="{$attachment->getThumbnailLink('thumbnail')}">{lang}wcf.attachment.insertThumbnail{/lang}</button></li>{/if}
+                                                       {if $attachment->thumbnailType}<li><button type="button" class="button small jsButtonAttachmentInsertThumbnail" data-object-id="{@$attachment->attachmentID}" data-url="{$attachment->getThumbnailLink('thumbnail')}">{lang}wcf.attachment.insertThumbnail{/lang}</button></li>{/if}
                                                        <li><button type="button" class="button small jsButtonAttachmentInsertFull" data-object-id="{@$attachment->attachmentID}" data-url="{$attachment->getLink()}">{lang}wcf.attachment.insertFull{/lang}</button></li>
                                                {else}
                                                        <li><button type="button" class="button small jsButtonInsertAttachment" data-object-id="{@$attachment->attachmentID}">{lang}wcf.attachment.insert{/lang}</button></li>