2013-03-07 08:01:18 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
define([
|
2013-03-29 23:28:58 +00:00
|
|
|
|
'app',
|
|
|
|
|
'Quality/QualityProfileCollection',
|
|
|
|
|
'Settings/Quality/Profile/EditQualityProfileView'
|
2013-03-07 08:01:18 +00:00
|
|
|
|
|
|
|
|
|
], function () {
|
|
|
|
|
|
2013-03-09 01:55:47 +00:00
|
|
|
|
NzbDrone.Settings.Quality.Profile.QualityProfileView = Backbone.Marionette.ItemView.extend({
|
|
|
|
|
template: 'Settings/Quality/Profile/QualityProfileTemplate',
|
2013-03-29 23:28:58 +00:00
|
|
|
|
tagName : 'tr',
|
2013-03-07 08:01:18 +00:00
|
|
|
|
|
|
|
|
|
ui: {
|
|
|
|
|
'progressbar': '.progress .bar'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
events: {
|
2013-03-29 23:28:58 +00:00
|
|
|
|
'click .x-edit' : 'editSeries',
|
2013-03-07 08:01:18 +00:00
|
|
|
|
'click .x-remove': 'removeSeries'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
editSeries: function () {
|
2013-03-14 00:26:30 +00:00
|
|
|
|
var view = new NzbDrone.Settings.Quality.Profile.EditQualityProfileView({ model: this.model});
|
2013-05-15 01:17:24 +00:00
|
|
|
|
NzbDrone.modalRegion.show(view);
|
2013-03-07 08:01:18 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
removeSeries: function () {
|
|
|
|
|
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
2013-05-15 01:17:24 +00:00
|
|
|
|
NzbDrone.modalRegion.show(view);
|
2013-03-07 08:01:18 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|