2013-03-07 11:01:18 +03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
define([
|
|
|
|
'app',
|
|
|
|
'Quality/QualityProfileCollection'
|
|
|
|
|
|
|
|
], function () {
|
|
|
|
|
2013-03-09 04:55:47 +03:00
|
|
|
NzbDrone.Settings.Quality.Profile.QualityProfileView = Backbone.Marionette.ItemView.extend({
|
|
|
|
template: 'Settings/Quality/Profile/QualityProfileTemplate',
|
2013-03-07 11:01:18 +03:00
|
|
|
tagName: 'tr',
|
|
|
|
|
|
|
|
ui: {
|
|
|
|
'progressbar': '.progress .bar'
|
|
|
|
},
|
|
|
|
|
|
|
|
events: {
|
|
|
|
'click .x-edit': 'editSeries',
|
|
|
|
'click .x-remove': 'removeSeries'
|
|
|
|
},
|
|
|
|
|
2013-03-08 06:11:42 +03:00
|
|
|
initialize: function () {
|
|
|
|
var test = 1;
|
2013-03-07 11:01:18 +03: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
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|