src/view.slickgrid.js

This commit is contained in:
aliounedia 2014-01-24 12:00:14 +01:00
parent a046861c4a
commit 9a75007478

View File

@ -311,7 +311,7 @@ my.SlickGrid = Backbone.View.extend({
model.set(v);
});
this._slickHandler.subscribe(this.grid.onClick,function(e, args){
if (args.cell == 0){
if (args.cell == 0 && self.state.get("gridOptions").enabledDelRow == true){
// We need to delete the associated model
var model = data.getModel(args.row);
model.destroy()