summaryrefslogtreecommitdiffstats
path: root/apps/comments/js/commentstabview.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-31 17:46:50 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-01 09:02:36 +0200
commit80e8d3db35e22f4e0c3adff79b426e472c203df0 (patch)
treeb35cff4d0156766cfc358e0770249a0c0f1ba68c /apps/comments/js/commentstabview.js
parent0c73797131cd7deacda08abc9324462893991368 (diff)
downloadnextcloud-server-80e8d3db35e22f4e0c3adff79b426e472c203df0.tar.gz
nextcloud-server-80e8d3db35e22f4e0c3adff79b426e472c203df0.zip
Use live timestamp on comments tab
Diffstat (limited to 'apps/comments/js/commentstabview.js')
-rw-r--r--apps/comments/js/commentstabview.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index eae18c1d485..82244d61e9a 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -51,7 +51,7 @@
'{{#if isUserAuthor}}' +
' <a href="#" class="action edit icon icon-rename has-tooltip" title="{{editTooltip}}"></a>' +
'{{/if}}' +
- ' <div class="date has-tooltip" title="{{altDate}}">{{date}}</div>' +
+ ' <div class="date has-tooltip live-relative-timestamp" data-timestamp="{{timestamp}}" title="{{altDate}}">{{date}}</div>' +
' </div>' +
' <div class="message">{{{formattedMessage}}}</div>' +
'{{#if isLong}}' +
@@ -179,6 +179,7 @@
_formatItem: function(commentModel) {
var timestamp = new Date(commentModel.get('creationDateTime')).getTime();
var data = _.extend({
+ timestamp: timestamp,
date: OC.Util.relativeModifiedDate(timestamp),
altDate: OC.Util.formatDate(timestamp),
formattedMessage: this._formatMessage(commentModel.get('message'))