From: Alexander Ebert Date: Thu, 18 Aug 2016 11:46:03 +0000 (+0200) Subject: Fixed image dialog looking weird on mobile X-Git-Tag: 3.0.0_Beta_1~694 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=825b114c90c3c897e6b1f0a3f4d6459b8bc0d3fa;p=GitHub%2FWoltLab%2FWCF.git Fixed image dialog looking weird on mobile --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js index f009730ab2..b4a9087194 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js @@ -112,6 +112,8 @@ $.Redactor.prototype.WoltLabImage = function() { var button = this.modal.getActionButton()[0]; button.addEventListener(WCF_CLICK_EVENT, this.WoltLabImage.insert); button.textContent = WCF.Language.get('wcf.global.button.insert'); + + this.WoltLabModal.rebuild(); }, insert: function(event) { diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js index 4374a499ec..df78cd349b 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js @@ -73,6 +73,12 @@ $.Redactor.prototype.WoltLabModal = function() { } }; }; + }, + + rebuild: function () { + if (_uiDialog) { + _uiDialog.rebuild('redactorOverlay-' + this.uuid); + } } }; }; \ No newline at end of file