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 ++++++ 1 file changed, 6 insertions(+) (limited to 'js') 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) { -- cgit v1.2.3