mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-21 01:50:40 +00:00
Trigger DomChangeListener in BoxRoomList on update
This commit is contained in:
parent
eba9d9d34a
commit
2bf415225a
@ -14,10 +14,11 @@
|
|||||||
define([
|
define([
|
||||||
'./console',
|
'./console',
|
||||||
'Bastelstu.be/_Push',
|
'Bastelstu.be/_Push',
|
||||||
|
'WoltLabSuite/Core/Dom/Change/Listener',
|
||||||
'WoltLabSuite/Core/Dom/Util',
|
'WoltLabSuite/Core/Dom/Util',
|
||||||
'WoltLabSuite/Core/Timer/Repeating',
|
'WoltLabSuite/Core/Timer/Repeating',
|
||||||
'Bastelstu.be/PromiseWrap/Ajax',
|
'Bastelstu.be/PromiseWrap/Ajax',
|
||||||
], function (console, Push, DomUtil, RepeatingTimer, Ajax) {
|
], function (console, Push, DomChangeListener, DomUtil, RepeatingTimer, Ajax) {
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
let timer = undefined
|
let timer = undefined
|
||||||
@ -98,6 +99,7 @@ define([
|
|||||||
|
|
||||||
if (oldRoomList.dataset.hash !== newRoomList.dataset.hash) {
|
if (oldRoomList.dataset.hash !== newRoomList.dataset.hash) {
|
||||||
this.container.replaceChild(newRoomList, oldRoomList)
|
this.container.replaceChild(newRoomList, oldRoomList)
|
||||||
|
DomChangeListener.trigger()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user