From f63081e7520d58df764d6fc529cde5ebbb582bc2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 5 Feb 2015 18:55:14 +0100 Subject: [PATCH] Fixed bad markup generated for non-image attachments --- wcfsetup/install/files/js/WCF.Attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } } -- 2.20.1