From 2da55d3bd804bd44eb6b6ec5b75e56c58b889e0d Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Dec 2024 14:18:55 +0000 Subject: remove jquery.timeago.js in favor of a native js implementation --- view/tpl/chat.tpl | 2 +- view/tpl/head.tpl | 1 + view/tpl/js_strings.tpl | 20 -------------------- view/tpl/messages_widget.tpl | 9 +++++---- view/tpl/notifications_widget.tpl | 6 +++--- view/tpl/pinned_item.tpl | 2 +- 6 files changed, 11 insertions(+), 29 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 766205ee0..1020399c7 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -206,7 +206,7 @@ function update_chats(chats) { chat_issue_notification(item.name + ':\n' + item.text, 'Hubzilla Chat'); } $('#chatLineHolder').append(newNode); - $(".autotime").timeago(); + updateRelativeTime('.autotime'); var elem = document.getElementById('chatTopBar'); elem.scrollTop = elem.scrollHeight; diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl index d2efcced9..18941f454 100644 --- a/view/tpl/head.tpl +++ b/view/tpl/head.tpl @@ -8,6 +8,7 @@ {{$linkrel}} {{$plugins}} {{/if}} -- cgit v1.2.3