From da6faaf1a5cc8d07034f94b47f56d0ae85b3c5e6 Mon Sep 17 00:00:00 2001 From: Cutls Date: Sat, 31 Aug 2019 00:10:24 +0900 Subject: [PATCH] Add: timeago on acct --- app/js/tl/datails.js | 2 ++ app/js/tl/list.js | 1 + app/js/userdata/his-data.js | 10 +++++----- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/js/tl/datails.js b/app/js/tl/datails.js index 52795d2a..b9bddb5e 100644 --- a/app/js/tl/datails.js +++ b/app/js/tl/datails.js @@ -422,6 +422,7 @@ function faved(id, acct_id) { $("#toot-fav .no-data").hide(); } $("#toot-fav").html(templete); + jQuery("time.timeago").timeago(); }); } @@ -445,6 +446,7 @@ function rted(id, acct_id) { }).then(function (json) { var templete = userparse(json, '', acct_id); $("#toot-rt").html(templete); + jQuery("time.timeago").timeago(); }); } //URL等のコピー diff --git a/app/js/tl/list.js b/app/js/tl/list.js index e2d4bf5e..6e6af919 100644 --- a/app/js/tl/list.js +++ b/app/js/tl/list.js @@ -135,6 +135,7 @@ function listUser(id, acct_id) { templete = lang.lang_list_nouser; } $("#lists-user").html(templete); + jQuery("time.timeago").timeago(); } else { $("#lists-user").html(lang.lang_list_nouser); } diff --git a/app/js/userdata/his-data.js b/app/js/userdata/his-data.js index 0436e944..370ca0f9 100644 --- a/app/js/userdata/his-data.js +++ b/app/js/userdata/his-data.js @@ -162,7 +162,7 @@ function flw(user, more, acct_id) { } else { $("#his-follow-list-contents").html(templete); } - + jQuery("time.timeago").timeago(); }); } @@ -228,7 +228,7 @@ function fer(user, more, acct_id) { } else { $("#his-follower-list-contents").html(templete); } - + jQuery("time.timeago").timeago(); }); } @@ -390,7 +390,7 @@ function showBlo(more, acct_id) { } else { $("#his-blocking-list-contents").html(templete); } - + jQuery("time.timeago").timeago(); }); } @@ -453,7 +453,7 @@ function showReq(more, acct_id) { } else { $("#his-request-list-contents").html(templete); } - + jQuery("time.timeago").timeago(); }); } @@ -550,7 +550,7 @@ function showFrl(more, acct_id) { } else { $("#his-follow-recom-contents").html(templete); } - + jQuery("time.timeago").timeago(); }); } //Keybase