From: Peter Lohse Date: Thu, 9 May 2019 06:21:45 +0000 (+0200) Subject: Fix submitButton selector in Ui/Message/Reply X-Git-Tag: 5.2.0_Alpha_1~19^2~2^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5aaf88603d599207deb1a3760117d42ea76d3957;p=GitHub%2FWoltLab%2FWCF.git Fix submitButton selector in Ui/Message/Reply Closes #2927 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js index c01e810423..5f4eadfa4f 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js @@ -41,7 +41,7 @@ define(['Ajax', 'Core', 'EventHandler', 'Language', 'Dom/ChangeListener', 'Dom/U // handle submit button var submitCallback = this._submit.bind(this); - var submitButton = elBySel('button[data-type="save"]'); + var submitButton = elBySel('button[data-type="save"]', this._container); submitButton.addEventListener(WCF_CLICK_EVENT, submitCallback); // bind reply button