update relative time on new ajax loaded content which wasn't evaluated during document.ready

This commit is contained in:
friendica 2012-07-23 05:15:06 -07:00
parent 3decf67e6d
commit d4ee086806
2 changed files with 7 additions and 0 deletions

View File

@ -250,12 +250,16 @@
$(this).attr('src',$(this).attr('dst')); $(this).attr('src',$(this).attr('dst'));
}); });
$('#' + prev).after($(this)); $('#' + prev).after($(this));
$("abbr.wall-item-ago-time").timeago();
} }
else { else {
$('img',this).each(function() { $('img',this).each(function() {
$(this).attr('src',$(this).attr('dst')); $(this).attr('src',$(this).attr('dst'));
}); });
$('#' + ident).replaceWith($(this)); $('#' + ident).replaceWith($(this));
$("abbr.wall-item-ago-time").timeago();
} }
prev = ident; prev = ident;
}); });
@ -295,6 +299,8 @@
/* autocomplete @nicknames */ /* autocomplete @nicknames */
$(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl"); $(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");
}); });
} }
function imgbright(node) { function imgbright(node) {

View File

@ -1,5 +1,6 @@
<?php <?php
require_once('include/items.php');
function network_init(&$a) { function network_init(&$a) {
if(! local_user()) { if(! local_user()) {