new_posts_ajax_stuff #1

Merged
0 merged 27 commits from new_posts_ajax_stuff into deploy_spamnoticer 2024-02-26 20:13:30 +00:00
1 changed files with 8 additions and 4 deletions
Showing only changes of commit 7ea730f14f - Show all commits

View File

@ -140,6 +140,13 @@ $().ready(() => {
}
}
$(document).on("thread_manual_refresh", () => {
if (secondsCounter >= 0) {
secondsCounter = 0
onTickFn()
}
})
let floaterLinkBox = null
const onStateChangeFn = v => {
onTickClean()
@ -156,10 +163,7 @@ $().ready(() => {
threadUpdateStatus.innerText = "…"
threadUpdateLink.addEventListener("click", e => {
e.preventDefault()
if (secondsCounter >= 0) {
secondsCounter = 0
onTickFn()
}
$(document).trigger("thread_manual_refresh")
})
threadUpdateLink.href = "#"
threadUpdateLink.appendChild(new Text("Refresh: "))