mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Delete modal wired up, more formatting
This commit is contained in:
@@ -3,11 +3,16 @@
|
||||
/// <reference path="../../app.js" />
|
||||
/// <reference path="../SeriesModel.js" />
|
||||
/// <reference path="../SeriesCollection.js" />
|
||||
/// <reference path="../DeleteSeriesView.js" />
|
||||
|
||||
NzbDrone.Series.Index.SeriesItemView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Series/Index/SeriesItemTemplate',
|
||||
tagName: 'tr',
|
||||
|
||||
ui: {
|
||||
'progressbar': '.progress .bar',
|
||||
},
|
||||
|
||||
events: {
|
||||
'click .x-remove': 'removeSeries',
|
||||
},
|
||||
@@ -17,8 +22,11 @@ NzbDrone.Series.Index.SeriesItemView = Backbone.Marionette.ItemView.extend({
|
||||
},
|
||||
|
||||
removeSeries: function () {
|
||||
this.model.destroy({ wait: true });
|
||||
this.model.collection.remove(this.model);
|
||||
//this.model.destroy({ wait: true });
|
||||
//this.model.collection.remove(this.model);
|
||||
|
||||
var view = new NzbDrone.Series.DeleteSeriesView({ model: this.model });
|
||||
NzbDrone.modalRegion.show(view);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user