mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -1,18 +1,20 @@
|
|||
'use strict';
|
||||
define(['app', 'Series/SeriesModel'], function () {
|
||||
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/series',
|
||||
model: NzbDrone.Series.SeriesModel,
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Series/SeriesModel'
|
||||
], function (Backbone, SeriesModel) {
|
||||
return Backbone.Collection.extend({
|
||||
url : window.ApiRoot + '/series',
|
||||
model: SeriesModel,
|
||||
|
||||
comparator: function(model) {
|
||||
return model.get('title');
|
||||
},
|
||||
comparator: function (model) {
|
||||
return model.get('title');
|
||||
},
|
||||
|
||||
state: {
|
||||
sortKey: 'title',
|
||||
order: -1
|
||||
}
|
||||
state: {
|
||||
sortKey: 'title',
|
||||
order : -1
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return NzbDrone.Series.SeriesCollection;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue