1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Series/Index/List/ItemView.js

37 lines
970 B
JavaScript
Raw Normal View History

'use strict';
define([
'app',
'Quality/QualityProfileCollection',
'Series/SeriesCollection',
'Series/Edit/EditSeriesView',
2013-06-21 08:19:41 +03:00
'Series/Delete/DeleteSeriesView',
'Shared/FormatHelpers'
2013-02-15 11:18:42 +03:00
], function () {
2013-04-23 03:35:04 +03:00
NzbDrone.Series.Index.List.ItemView = Backbone.Marionette.ItemView.extend({
template: 'Series/Index/List/ItemTemplate',
ui: {
2013-02-15 11:18:42 +03:00
'progressbar': '.progress .bar'
},
events: {
'click .x-edit' : 'editSeries',
2013-06-09 01:23:17 +03:00
'click .x-remove': 'removeSeries'
},
editSeries: function () {
2013-03-04 05:02:57 +03:00
var view = new NzbDrone.Series.Edit.EditSeriesView({ model: this.model});
NzbDrone.modalRegion.show(view);
},
removeSeries: function () {
2013-03-04 01:42:26 +03:00
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
NzbDrone.modalRegion.show(view);
}
});
2013-06-19 04:02:23 +03:00
return NzbDrone.Series.Index.List.ItemView;
});