2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-06-21 00:06:56 +00:00
|
|
|
define(
|
|
|
|
[
|
2013-07-28 20:20:26 +00:00
|
|
|
'backbone'
|
2013-06-21 00:06:56 +00:00
|
|
|
], function (Backbone) {
|
|
|
|
|
2013-10-01 05:30:02 +00:00
|
|
|
var StatusModel = Backbone.Model.extend({
|
2013-09-14 07:10:19 +00:00
|
|
|
url: window.NzbDrone.ApiRoot + '/system/status'
|
2013-06-21 00:06:56 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2013-10-01 05:30:02 +00:00
|
|
|
var instance = new StatusModel();
|
2013-06-21 00:06:56 +00:00
|
|
|
instance.fetch();
|
|
|
|
return instance;
|
|
|
|
});
|