From 4df390713c1dcde587a2ed98706873ee8dc323ca Mon Sep 17 00:00:00 2001 From: cutls Date: Fri, 4 Sep 2020 23:54:49 +0900 Subject: [PATCH] #317 announcement bug --- app/js/tl/announParse.js | 4 +++- app/js/tl/tl.js | 2 +- app/js/ui/layout.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/js/tl/announParse.js b/app/js/tl/announParse.js index 8443b9ee..1665c710 100644 --- a/app/js/tl/announParse.js +++ b/app/js/tl/announParse.js @@ -111,7 +111,9 @@ function announReaction(id, acct_id, tlid, del, name) { if (this.status !== 200) { setLog(start, this.status, this.response) } - announ(acct_id, tlid) + setTimeout(function () { + announ(acct_id, tlid) + }, 3000) } } } diff --git a/app/js/tl/tl.js b/app/js/tl/tl.js index 7002fef5..35b37b45 100644 --- a/app/js/tl/tl.js +++ b/app/js/tl/tl.js @@ -1457,7 +1457,7 @@ function announ(acct_id, tlid) { $('.notf-announ_' + acct_id).addClass('hide') } var templete = announParse(json, acct_id, tlid) - $('#announce_' + tlid).html(templete) + $('.announce_' + acct_id).html(templete) jQuery('time.timeago').timeago() todc() } diff --git a/app/js/ui/layout.js b/app/js/ui/layout.js index eb84187a..42f8bbe6 100644 --- a/app/js/ui/layout.js +++ b/app/js/ui/layout.js @@ -423,7 +423,7 @@ function parseColumn(target, dontclose) {
-
+