2013-06-22 09:24:24 +03:00
|
|
|
'use strict';
|
2013-06-25 02:41:59 +03:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'app',
|
|
|
|
'backgrid',
|
|
|
|
'Series/Edit/EditSeriesView',
|
|
|
|
'Series/Delete/DeleteSeriesView'
|
|
|
|
], function (App, Backgrid, EditSeriesView, DeleteSeriesView) {
|
|
|
|
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 () {
|
|
|
|
var view = new EditSeriesView({ model: this.model});
|
|
|
|
App.modalRegion.show(view);
|
|
|
|
},
|
2013-06-15 02:18:37 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
removeSeries: function () {
|
|
|
|
var view = new DeleteSeriesView({ model: this.model });
|
|
|
|
App.modalRegion.show(view);
|
|
|
|
}
|
|
|
|
});
|
2013-06-15 02:18:37 +03:00
|
|
|
});
|
|
|
|
|