summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-31 17:33:00 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-01 09:02:36 +0200
commitee1c1b39b29fbad948068f93b2a0eeb537ef456c (patch)
treecb7f04dd8aff876f9cc887d8299627fc2286322b /core
parent4a5cd74fb29b19c975f893e0289b1b34bf5e8a62 (diff)
downloadnextcloud-server-ee1c1b39b29fbad948068f93b2a0eeb537ef456c.tar.gz
nextcloud-server-ee1c1b39b29fbad948068f93b2a0eeb537ef456c.zip
Update live timestamps to give a more live feeling
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 799d2ba0b24..a123846a72e 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1660,6 +1660,13 @@ function initCore() {
$('body').delegate('#app-content', 'apprendered appresized', adjustControlsWidth);
}
+
+ // Update live timestamps every 30 seconds
+ setInterval(function() {
+ $('.live-relative-timestamp').each(function() {
+ $(this).text(OC.Util.relativeModifiedDate(parseInt($(this).attr('data-timestamp'), 10)));
+ });
+ }, 30 * 1000);
}
$(document).ready(initCore);