Trigger DomChangeListener in BoxRoomList on update

This commit is contained in:
Maximilian Mader 2021-02-05 22:15:07 +01:00
parent eba9d9d34a
commit 2bf415225a
Signed by: Max
GPG Key ID: F71D56A3151C4FB3
1 changed files with 3 additions and 1 deletions

View File

@ -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()
}
}