1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Shared/Footer/Model.js

19 lines
392 B
JavaScript
Raw Normal View History

2013-06-15 07:02:40 +03:00
"use strict";
define(['app'], function () {
2013-06-18 03:49:48 +03:00
return Backbone.Model.extend({
2013-06-15 07:02:40 +03:00
defaults: {
2013-06-16 01:18:41 +03:00
'version' : '0.0.0.0',
'buildDate' : Date.create()
},
mutators: {
humanizedBuildDate: function () {
var date = Date.create(this.get('buildDate'));
return date.short();
}
2013-06-15 07:02:40 +03:00
}
});
});