2013-03-07 08:01:18 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
define([
|
|
|
|
|
'app',
|
|
|
|
|
'Quality/QualityProfileCollection'
|
|
|
|
|
|
|
|
|
|
], function () {
|
|
|
|
|
|
2013-03-08 03:11:42 +00:00
|
|
|
|
NzbDrone.Settings.Quality.QualityProfileView = Backbone.Marionette.ItemView.extend({
|
2013-03-07 08:01:18 +00:00
|
|
|
|
template: 'Settings/Quality/QualityProfileTemplate',
|
|
|
|
|
tagName: 'tr',
|
|
|
|
|
|
|
|
|
|
ui: {
|
|
|
|
|
'progressbar': '.progress .bar'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
|
'click .x-edit': 'editSeries',
|
|
|
|
|
'click .x-remove': 'removeSeries'
|
|
|
|
|
},
|
|
|
|
|
|
2013-03-08 03:11:42 +00:00
|
|
|
|
initialize: function () {
|
|
|
|
|
var test = 1;
|
2013-03-07 08:01:18 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onRender: function () {
|
|
|
|
|
NzbDrone.ModelBinder.bind(this.model, this.el);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
editSeries: function () {
|
|
|
|
|
var view = new NzbDrone.Series.Edit.EditSeriesView({ model: this.model});
|
|
|
|
|
|
|
|
|
|
NzbDrone.vent.trigger(NzbDrone.Events.OpenModalDialog, {
|
|
|
|
|
view: view
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
removeSeries: function () {
|
|
|
|
|
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
|
|
|
|
NzbDrone.vent.trigger(NzbDrone.Events.OpenModalDialog, {
|
|
|
|
|
view: view
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|