mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: allow turning off timeago
This commit is contained in:
3 files changed
+9
-2
No files matched your search
@@ -38,6 +38,7 @@ function cancelRelativeTime($container) {
|
||||
}
|
||||
|
||||
const relativeTimePage = new AutoloadPage('relativeTimePage', () => {
|
||||
if (!UserContext.showTimeAgo) return;
|
||||
runRelativeTime($('body'));
|
||||
$(document).on('vjContentNew', (e) => runRelativeTime($(e.target)));
|
||||
$(document).on('vjContentRemove', (e) => cancelRelativeTime($(e.target)));
|
||||
|
||||
Reference in new issue
Block a user