Fix submitButton selector in Ui/Message/Reply
authorPeter Lohse <peterlohse@yahoo.de>
Thu, 9 May 2019 06:21:45 +0000 (08:21 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 24 May 2019 15:24:25 +0000 (17:24 +0200)
Closes #2927

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js

index c01e810423cd4d4418b2166b34e20fbd1aa4f044..5f4eadfa4f3b24745f1ee411a283f4dc96de9e7c 100644 (file)
@@ -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