From 825b114c90c3c897e6b1f0a3f4d6459b8bc0d3fa Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 18 Aug 2016 13:46:03 +0200 Subject: [PATCH] Fixed image dialog looking weird on mobile --- .../files/js/3rdParty/redactor2/plugins/WoltLabImage.js | 2 ++ .../files/js/3rdParty/redactor2/plugins/WoltLabModal.js | 6 ++++++ 2 files changed, 8 insertions(+) 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 -- 2.20.1