|
|
@ -4,10 +4,7 @@ define(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'app',
|
|
|
|
'app',
|
|
|
|
'marionette',
|
|
|
|
'marionette',
|
|
|
|
'Series/Edit/EditSeriesView',
|
|
|
|
], function (App, Marionette) {
|
|
|
|
'Series/Delete/DeleteSeriesView'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
], function (App, Marionette, EditSeriesView, DeleteSeriesView) {
|
|
|
|
|
|
|
|
return Marionette.ItemView.extend({
|
|
|
|
return Marionette.ItemView.extend({
|
|
|
|
template: 'Series/Index/List/ItemTemplate',
|
|
|
|
template: 'Series/Index/List/ItemTemplate',
|
|
|
|
|
|
|
|
|
|
|
@ -21,13 +18,11 @@ define(
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
editSeries: function () {
|
|
|
|
editSeries: function () {
|
|
|
|
var view = new EditSeriesView({ model: this.model});
|
|
|
|
App.vent.trigger(App.Commands.EditSeriesCommand, {series: this.model});
|
|
|
|
App.modalRegion.show(view);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
removeSeries: function () {
|
|
|
|
removeSeries: function () {
|
|
|
|
var view = new DeleteSeriesView({ model: this.model });
|
|
|
|
App.vent.trigger(App.Commands.DeleteSeriesCommand, {series: this.model});
|
|
|
|
App.modalRegion.show(view);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|