Series/Index wired up to backbone, just need to add DT

This commit is contained in:
Mark McDowall
2013-02-10 02:28:56 -08:00
committed by kay.one
parent 84fbfb5d48
commit 796f63680a
17 changed files with 265 additions and 26 deletions
@@ -21,7 +21,8 @@ NzbDrone.Series.DeleteSeriesView = Backbone.Marionette.ItemView.extend({
},
removeSeries: function () {
this.model.destroy({ wait: true });
//Todo: why the fuck doesn't destroy send the ID?
this.model.destroy({ wait: true, headers: { id: this.model.get('id'), deleteFiles: $('#delete-from-disk').prop('checked') } });
this.model.collection.remove(this.model);
this.$el.parent().modal('hide');
},