Listeners for smiley interactions were incorrectly scoped
authorAlexander Ebert <ebert@woltlab.com>
Tue, 12 Mar 2019 18:39:42 +0000 (19:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 12 Mar 2019 18:39:42 +0000 (19:39 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js

index bfe42a179bbe6167c5add6676bd95290e0b93452..f87125910465e66e19adb0128762fcad9d510b28 100644 (file)
@@ -20,7 +20,7 @@ define(['EventHandler', 'EventKey'], function (EventHandler, EventKey) {
                init: function (editorId) {
                        this._editorId = editorId;
                        
-                       var container = elBySel('.messageTabMenu[data-wysiwyg-container-id=' + this._editorId + ']');
+                       var container = elById('smilies-' + this._editorId);
                        if (!container) {
                                throw new Error('Unable to find the message tab menu container containing the smilies.');
                        }