mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
almost all js files are loaded using require.js
This commit is contained in:
parent
aed7b95245
commit
2407e33ea2
35 changed files with 570 additions and 717 deletions
|
@ -1,24 +1,24 @@
|
|||
"use strict";
|
||||
define(['app', 'Series/EpisodeModel'], function () {
|
||||
NzbDrone.Missing.Collection = Backbone.PageableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/missing',
|
||||
model : NzbDrone.Series.EpisodeModel,
|
||||
define(['app', 'Series/EpisodeModel', 'backbone.pageable'], function (app, EpisodeModel, PagableCollection) {
|
||||
NzbDrone.Missing.Collection = PagableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/missing',
|
||||
model: NzbDrone.Series.EpisodeModel,
|
||||
|
||||
state: {
|
||||
pageSize: 15,
|
||||
sortKey: "airDate",
|
||||
order: 1
|
||||
sortKey : "airDate",
|
||||
order : 1
|
||||
},
|
||||
|
||||
queryParams: {
|
||||
totalPages: null,
|
||||
totalPages : null,
|
||||
totalRecords: null,
|
||||
pageSize: 'pageSize',
|
||||
sortKey: "sortKey",
|
||||
order: "sortDir",
|
||||
directions: {
|
||||
pageSize : 'pageSize',
|
||||
sortKey : "sortKey",
|
||||
order : "sortDir",
|
||||
directions : {
|
||||
"-1": "asc",
|
||||
"1": "desc"
|
||||
"1" : "desc"
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -34,4 +34,4 @@ define(['app', 'Series/EpisodeModel'], function () {
|
|||
return resp;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue