Fixed image dialog looking weird on mobile
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 11:46:03 +0000 (13:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 11:46:03 +0000 (13:46 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js

index f009730ab2c09596ab2ca2898d41f17d9523ef0e..b4a90871948d08d80b3400e41b61bcd6055a53c3 100644 (file)
@@ -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) {
index 4374a499ec508f457c2fb5dc6731313e1516b689..df78cd349b53ff59f20c4e431c08f51502466007 100644 (file)
@@ -73,6 +73,12 @@ $.Redactor.prototype.WoltLabModal = function() {
                                        }
                                };
                        };
+               },
+               
+               rebuild: function () {
+                       if (_uiDialog) {
+                               _uiDialog.rebuild('redactorOverlay-' + this.uuid);
+                       }
                }
        };
 };
\ No newline at end of file