mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-24 16:51:58 +00:00
Missing doesn't double fetch
This commit is contained in:
parent
9823560ec0
commit
6a3d886588
7 changed files with 12 additions and 18 deletions
|
@ -49,7 +49,10 @@ public static void Map()
|
|||
.HasOne(s => s.QualityProfile, s => s.QualityProfileId);
|
||||
|
||||
Mapper.Entity<Season>().RegisterModel("Seasons");
|
||||
Mapper.Entity<Episode>().RegisterModel("Episodes");
|
||||
|
||||
Mapper.Entity<Episode>().RegisterModel("Episodes")
|
||||
.Ignore(e => e.SeriesTitle);
|
||||
|
||||
Mapper.Entity<EpisodeFile>().RegisterModel("EpisodeFiles");
|
||||
|
||||
Mapper.Entity<QualityProfile>().RegisterModel("QualityProfiles");
|
||||
|
|
Binary file not shown.
|
@ -119,7 +119,7 @@
|
|||
<script src="/Mixins/tablesorter.extensions.js"></script>
|
||||
<script src="/Mixins/spoon.js"></script>
|
||||
<script src="/Mixins/backbone.modelbinder.mixin.js"></script>
|
||||
<script src="/Mixins/backbone.Backgrid.mixin.js"></script>
|
||||
<script src="/Mixins/backbone.backgrid.mixin.js"></script>
|
||||
<script src="/Mixins/handlebars.mixin.js"></script>
|
||||
|
||||
<script data-main="/app" src="/JsLibraries/require.js"></script>
|
||||
|
|
|
@ -354,4 +354,4 @@
|
|||
|
||||
});
|
||||
|
||||
}(jQuery, _, Backbone, Backgrid, lunr));
|
||||
}(jQuery, _, Backbone, Backgrid));
|
||||
|
|
|
@ -77,7 +77,6 @@ define([
|
|||
|
||||
initialize: function () {
|
||||
this.missingCollection = new NzbDrone.Missing.Collection();
|
||||
this.missingCollection.fetch();
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
|
|
|
@ -30,15 +30,6 @@ Backgrid.NzbDroneHeaderCell = Backgrid.HeaderCell.extend({
|
|||
var sortKey = this.collection.state.sortKey;
|
||||
var sortDir = this._convertIntToDirection(this.collection.state.order);
|
||||
|
||||
if (sortKey === this.column.get('name')) {
|
||||
this.$el.children('i').addClass(this._convertDirectionToIcon(sortDir));
|
||||
this._direction = sortDir;
|
||||
}
|
||||
}
|
||||
else if (this.collection.defaultSortKey) {
|
||||
var sortKey = this.collection.defaultSortKey;
|
||||
var sortDir = this._convertIntToDirection(this.collection.defaultSortDir);
|
||||
|
||||
if (sortKey === this.column.get('name')) {
|
||||
this.$el.children('i').addClass(this._convertDirectionToIcon(sortDir));
|
||||
this._direction = sortDir;
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
"use strict";
|
||||
define(['app', 'Series/SeriesModel'], function () {
|
||||
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
||||
NzbDrone.Series.SeriesCollection = Backbone.PageableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/series',
|
||||
model: NzbDrone.Series.SeriesModel,
|
||||
|
||||
defaultSortKey: 'title',
|
||||
defaultSortDir: '-1',
|
||||
mode: 'client',
|
||||
|
||||
comparator: function (model) {
|
||||
return model.get(this.defaultSortKey);
|
||||
state: {
|
||||
sortKey: "title",
|
||||
order: -1,
|
||||
pageSize: 1000000
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue