From: Alexander Ebert Date: Thu, 5 Feb 2015 17:55:14 +0000 (+0100) Subject: Fixed bad markup generated for non-image attachments X-Git-Tag: 2.1.0_RC_1~79^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f63081e7520d58df764d6fc529cde5ebbb582bc2;p=GitHub%2FWoltLab%2FWCF.git Fixed bad markup generated for non-image attachments --- diff --git a/wcfsetup/install/files/js/WCF.Attachment.js b/wcfsetup/install/files/js/WCF.Attachment.js index 06c19c9c21..3df24d4433 100644 --- a/wcfsetup/install/files/js/WCF.Attachment.js +++ b/wcfsetup/install/files/js/WCF.Attachment.js @@ -335,7 +335,7 @@ WCF.Attachment.Upload = WCF.Upload.extend({ } else { var $insertPlain = $('
  • ' + WCF.Language.get('wcf.attachment.insert') + '
  • '); - $insertPlain.children('span.button').click($.proxy(this._insert, this)).appendTo($buttonList); + $insertPlain.appendTo($buttonList).children('span.button').click($.proxy(this._insert, this)); } } }