mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Fixed stuff :)
NzbDrone.Console works again Added empty collection message for Series
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<td colspan="8">No series found</td>
|
||||
@@ -6,9 +6,12 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/SeriesItemView'], fun
|
||||
itemViewContainer: 'tbody',
|
||||
template: 'Series/SeriesCollectionTemplate',
|
||||
qualityProfileCollection: qualityProfileCollection,
|
||||
emptyView: NzbDrone.Series.EmptySeriesCollectionView,
|
||||
|
||||
initialize: function () {
|
||||
this.collection = new NzbDrone.Series.SeriesCollection();
|
||||
//Todo: This caused the onRendered event to be trigger twice, which displays two empty collection messages
|
||||
//http://stackoverflow.com/questions/13065176/backbone-marionette-composit-view-onrender-executing-twice
|
||||
this.collection.fetch();
|
||||
this.qualityProfileCollection.fetch();
|
||||
|
||||
@@ -19,7 +22,6 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/SeriesItemView'], fun
|
||||
table : '.x-series-table'
|
||||
},
|
||||
|
||||
|
||||
onItemRemoved: function()
|
||||
{
|
||||
this.ui.table.trigger('update');
|
||||
@@ -84,5 +86,9 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/SeriesItemView'], fun
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
NzbDrone.Series.EmptySeriesCollectionView = Backbone.Marionette.CompositeView.extend({
|
||||
template: 'Series/EmptySeriesCollectionTemplate',
|
||||
tagName: 'tr'
|
||||
});
|
||||
@@ -1,6 +1,4 @@
|
||||
define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfileCollection) {
|
||||
|
||||
|
||||
NzbDrone.Series.SeriesModel = Backbone.Model.extend({
|
||||
|
||||
mutators: {
|
||||
@@ -33,8 +31,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
defaults: {
|
||||
episodeFileCount: 0,
|
||||
episodeCount: 0,
|
||||
|
||||
Reference in New Issue
Block a user