From d4ee08680696e5cc46dd1a9ad8f4a06a083b61dc Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 23 Jul 2012 05:15:06 -0700 Subject: update relative time on new ajax loaded content which wasn't evaluated during document.ready --- js/main.js | 6 ++++++ mod/network.php | 1 + 2 files changed, 7 insertions(+) diff --git a/js/main.js b/js/main.js index e434ee4a5..453b5920e 100644 --- a/js/main.js +++ b/js/main.js @@ -250,12 +250,16 @@ $(this).attr('src',$(this).attr('dst')); }); $('#' + prev).after($(this)); + $("abbr.wall-item-ago-time").timeago(); + } else { $('img',this).each(function() { $(this).attr('src',$(this).attr('dst')); }); $('#' + ident).replaceWith($(this)); + $("abbr.wall-item-ago-time").timeago(); + } prev = ident; }); @@ -295,6 +299,8 @@ /* autocomplete @nicknames */ $(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl"); }); + + } function imgbright(node) { diff --git a/mod/network.php b/mod/network.php index 4fdbe0ecb..a3121b3ad 100644 --- a/mod/network.php +++ b/mod/network.php @@ -1,5 +1,6 @@