2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-06-24 23:41:59 +00:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'app',
|
2013-07-24 04:16:52 +00:00
|
|
|
'backgrid'
|
|
|
|
], function (App, Backgrid) {
|
2013-06-24 23:41:59 +00:00
|
|
|
return Backgrid.Row.extend({
|
|
|
|
events: {
|
|
|
|
'click .x-edit' : 'editSeries',
|
|
|
|
'click .x-remove': 'removeSeries'
|
|
|
|
},
|
2013-05-01 03:04:06 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
editSeries: function () {
|
2013-07-24 04:16:52 +00:00
|
|
|
App.vent.trigger(App.Commands.EditSeriesCommand, {series:this.model});
|
2013-06-24 23:41:59 +00:00
|
|
|
},
|
2013-06-14 23:18:37 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
removeSeries: function () {
|
2013-07-24 04:16:52 +00:00
|
|
|
App.vent.trigger(App.Commands.DeleteSeriesCommand, {series:this.model});
|
|
|
|
},
|
2013-06-24 23:41:59 +00:00
|
|
|
});
|
2013-06-14 23:18:37 +00:00
|
|
|
});
|
|
|
|
|