summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-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);