Skip to content

Commit

Permalink
Update combo-2.html
Browse files Browse the repository at this point in the history
w2ui.grid.add($.extend(true, { recid: w2ui.grid.records.length + 1 }, this.record));
Should be changed to
w2ui.grid.add($.extend(true,  this.record,{ recid: w2ui.grid.records.length + 2 }));
  • Loading branch information
datamapv authored Oct 4, 2017
1 parent be91366 commit 73b8588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/examples/combo-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>Grid & Edit</h1>
var errors = this.validate();
if (errors.length > 0) return;
if (this.recid == 0) {
w2ui.grid.add($.extend(true, { recid: w2ui.grid.records.length + 1 }, this.record));
w2ui.grid.add($.extend(true, this.record,{ recid: w2ui.grid.records.length + 2 }));
w2ui.grid.selectNone();
this.clear();
} else {
Expand Down

0 comments on commit 73b8588

Please sign in to comment.