aboutsummaryrefslogtreecommitdiffstats
path: root/view
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
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')
-rw-r--r--view/js/main.js3
-rw-r--r--view/js/mod_mail.js1
2 files changed, 3 insertions, 1 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();
diff --git a/view/js/mod_mail.js b/view/js/mod_mail.js
index e3c891c2c..917e5414c 100644
--- a/view/js/mod_mail.js
+++ b/view/js/mod_mail.js
@@ -1,5 +1,4 @@
$(document).ready(function() {
- $(".autotime").timeago();
$("#recip").name_autocomplete(baseurl + '/acl', 'm', false, function(data) {
$("#recip-complete").val(data.xid);
});