From 2bf415225a3eae616e9c6ec3cf811e52aca5ebc1 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Fri, 5 Feb 2021 22:15:07 +0100 Subject: [PATCH] Trigger DomChangeListener in BoxRoomList on update --- files_wcf/js/Bastelstu.be/Chat/BoxRoomList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files_wcf/js/Bastelstu.be/Chat/BoxRoomList.js b/files_wcf/js/Bastelstu.be/Chat/BoxRoomList.js index abf9cd9..5a79bcb 100644 --- a/files_wcf/js/Bastelstu.be/Chat/BoxRoomList.js +++ b/files_wcf/js/Bastelstu.be/Chat/BoxRoomList.js @@ -14,10 +14,11 @@ define([ './console', 'Bastelstu.be/_Push', + 'WoltLabSuite/Core/Dom/Change/Listener', 'WoltLabSuite/Core/Dom/Util', 'WoltLabSuite/Core/Timer/Repeating', 'Bastelstu.be/PromiseWrap/Ajax', -], function (console, Push, DomUtil, RepeatingTimer, Ajax) { +], function (console, Push, DomChangeListener, DomUtil, RepeatingTimer, Ajax) { 'use strict' let timer = undefined @@ -98,6 +99,7 @@ define([ if (oldRoomList.dataset.hash !== newRoomList.dataset.hash) { this.container.replaceChild(newRoomList, oldRoomList) + DomChangeListener.trigger() } }