Merge pull request #387 from aliounedia/master

src/view.slickgrid.js
This commit is contained in:
Rufus Pollock 2014-01-24 03:46:58 -08:00
commit 5a239131b3

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()