aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-23 05:15:06 -0700
committerfriendica <info@friendica.com>2012-07-23 05:15:06 -0700
commitd4ee08680696e5cc46dd1a9ad8f4a06a083b61dc (patch)
tree939e1c91ea9e17016c790181f110e1345cb9a6df
parent3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1 (diff)
downloadvolse-hubzilla-d4ee08680696e5cc46dd1a9ad8f4a06a083b61dc.tar.gz
volse-hubzilla-d4ee08680696e5cc46dd1a9ad8f4a06a083b61dc.tar.bz2
volse-hubzilla-d4ee08680696e5cc46dd1a9ad8f4a06a083b61dc.zip
update relative time on new ajax loaded content which wasn't evaluated during document.ready
-rw-r--r--js/main.js6
-rw-r--r--mod/network.php1
2 files changed, 7 insertions, 0 deletions
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 @@
<?php
+require_once('include/items.php');
function network_init(&$a) {
if(! local_user()) {