Browse Source

Use live timestamp on comments tab

tags/v11.0RC2
Joas Schilling 7 years ago
parent
commit
80e8d3db35
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      apps/comments/js/commentstabview.js

+ 2
- 1
apps/comments/js/commentstabview.js View File

@@ -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'))

Loading…
Cancel
Save