diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-09-01 14:13:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 14:13:23 +0200 |
commit | ca7b60ba816e198202d1fb61e576013888636737 (patch) | |
tree | df93d0ebd24ff1b51721784a2892b589de430778 /core | |
parent | 8325c4443b64d10abc79f9b12ace093f69e8d4ce (diff) | |
parent | 80e8d3db35e22f4e0c3adff79b426e472c203df0 (diff) | |
download | nextcloud-server-ca7b60ba816e198202d1fb61e576013888636737.tar.gz nextcloud-server-ca7b60ba816e198202d1fb61e576013888636737.zip |
Merge pull request #1215 from nextcloud/issue-1083-update-live-relative-timestamps
Update relative timestamps for a better "live" feeling
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 7 |
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); |