Skip to content

Commit

Permalink
Merge pull request datopian#387 from aliounedia/master
Browse files Browse the repository at this point in the history
src/view.slickgrid.js
  • Loading branch information
rufuspollock committed Jan 24, 2014
2 parents ba62ee4 + 9a75007 commit 5a23913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view.slickgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5a23913

Please sign in to comment.