aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-07-13 11:00:37 +0200
committerMario Vavti <mario@mariovavti.com>2018-07-13 11:00:37 +0200
commitbb7022350943c6f049641d50d28cb99caf019b83 (patch)
tree5a71ac96d41f04704e6bbd4d1dbe439854486665 /view/js/main.js
parent98fb2ec639c907ff7b232c6a99db26a757f540c8 (diff)
downloadvolse-hubzilla-bb7022350943c6f049641d50d28cb99caf019b83.tar.gz
volse-hubzilla-bb7022350943c6f049641d50d28cb99caf019b83.tar.bz2
volse-hubzilla-bb7022350943c6f049641d50d28cb99caf019b83.zip
when calling timeago() from mod_mail.js it is called before the translations are applied - move the call to main.js and be more specific with the selector to not trigger calls for other modules (eg network) which is handled elsewhere to not be to much of an performance hog (to many dates at a time)
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 45c412296..17f94dd16 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -62,6 +62,9 @@ $(document).ready(function() {
numbers : aStr['t17'],
};
+ //mod_mail only
+ $(".mail-conv-detail .autotime").timeago();
+
savedTitle = document.title;
updateInit();