mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 17:33:18 +00:00
fix bug when show device error at admin page
This commit is contained in:
@@ -19,9 +19,9 @@ define([
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var data = this.model.toJSON();
|
var data = this.model.toJSON();
|
||||||
var last_accessed = Moment(data['last_accessed']);
|
var error_time = Moment(data['error_time']);
|
||||||
data['time'] = last_accessed.format('LLLL');
|
data['time'] = error_time.format('LLLL');
|
||||||
data['time_from_now'] = Common.getRelativeTimeStr(last_accessed);
|
data['time_from_now'] = Common.getRelativeTimeStr(error_time);
|
||||||
this.$el.html(this.template(data));
|
this.$el.html(this.template(data));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user