thread_autoupdater.js: update tslp on ajax post
This commit is contained in:
parent
c5cf671929
commit
07db8e2db4
|
@ -153,8 +153,10 @@ $().ready(() => {
|
|||
|
||||
$(document).on("ajax_after_post", (_, xhr_body) => {
|
||||
if (kIsEnabled.getValue() && xhr_body != null) {
|
||||
const thread = LCNThread.first()
|
||||
const dom = parser.parseFromString(xhr_body.thread, "text/html")
|
||||
updateThreadFn(LCNThread.first(), dom)
|
||||
updateThreadFn(thread, dom)
|
||||
updateSecondsByTSLP(thread.getReplies().at(-1).getInfo())
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue