aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-23 04:11:59 -0700
committerfriendica <info@friendica.com>2012-07-23 04:11:59 -0700
commit3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1 (patch)
tree890749f2ac3bca28745ff93089c4c9e68e49ae63 /js
parent33ea8737b71466be84dfaaa0fa16cd2850805158 (diff)
downloadvolse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.tar.gz
volse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.tar.bz2
volse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.zip
realtime updates of "6 minutes ago" with fallback to iso8601 timestamps (available on tooltip)
Diffstat (limited to 'js')
-rw-r--r--js/main.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index e8c5b060e..e434ee4a5 100644
--- a/js/main.js
+++ b/js/main.js
@@ -686,3 +686,31 @@ function previewTheme(elm) {
});
};
})(jQuery);
+
+
+
+$(document).ready(function() {
+
+jQuery.timeago.settings.strings = {
+ prefixAgo: t01,
+ prefixFromNow: t02,
+ suffixAgo: t03,
+ suffixFromNow: t04,
+ seconds: t05,
+ minute: t06,
+ minutes: t07,
+ hour: t08,
+ hours: t09,
+ day: t10,
+ days: t11,
+ month: t12,
+ months: t13,
+ year: t14,
+ years: t15,
+ wordSeparator: t16,
+ numbers: t17
+};
+
+
+$("abbr.wall-item-ago-time").timeago();
+}); \ No newline at end of file