From 027a94b882911a9a64282a843c9ec9327a4755ab Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 10 Jul 2020 20:49:36 +0200 Subject: [PATCH] Rebuild interface elements on upload --- wcfsetup/install/files/js/WCF.Attachment.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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, -- 2.20.1