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)

This commit is contained in:
Mario Vavti 2018-07-13 11:00:37 +02:00
parent 98fb2ec639
commit bb70223509
2 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,9 @@ $(document).ready(function() {
numbers : aStr['t17'],
};
//mod_mail only
$(".mail-conv-detail .autotime").timeago();
savedTitle = document.title;
updateInit();

View File

@ -1,5 +1,4 @@
$(document).ready(function() {
$(".autotime").timeago();
$("#recip").name_autocomplete(baseurl + '/acl', 'm', false, function(data) {
$("#recip-complete").val(data.xid);
});