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