From: Alexander Ebert Date: Fri, 10 Jul 2020 18:49:36 +0000 (+0200) Subject: Rebuild interface elements on upload X-Git-Tag: 5.3.0_Alpha_1~144^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=027a94b882911a9a64282a843c9ec9327a4755ab;p=GitHub%2FWoltLab%2FWCF.git Rebuild interface elements on upload --- diff --git a/wcfsetup/install/files/js/WCF.Attachment.js b/wcfsetup/install/files/js/WCF.Attachment.js index 6968f56586..41a2bf6349 100644 --- a/wcfsetup/install/files/js/WCF.Attachment.js +++ b/wcfsetup/install/files/js/WCF.Attachment.js @@ -620,6 +620,10 @@ WCF.Attachment.Upload = WCF.Upload.extend({ } } + this._rebuildInterface(); + }, + + _rebuildInterface: function () { this._makeSortable(); if (this._fileListSelector.children('li:not(.uploadFailed)').length) { @@ -790,9 +794,15 @@ WCF.Attachment.Upload = WCF.Upload.extend({ this._fileListSelector[0].appendChild(attachment); elShow(this._fileListSelector[0]); + + this._rebuildInterface(); }).bind(this)); }, + /** + * @param {string} type + * @param {Object} data + */ _triggerSync: function (type, data) { WCF.System.Event.fireEvent('com.woltlab.wcf.redactor2', 'sync_' + this._tmpHash, { source: this,