Skip to content

Commit

Permalink
Fix of the bug which prevent usage of id returned by afterSubmit
Browse files Browse the repository at this point in the history
See the question http://stackoverflow.com/q/29569696/315935 for more
details
  • Loading branch information
OlegKi committed Apr 10, 2015
1 parent b1a9785 commit 49d0c75
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion js/grid.formedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@
$("#sData", frmtb2).addClass("ui-state-active");
url = o.url || p.editurl;
oper = opers.oper;
idname = url === "clientArray" ? p.keyName : opers.id;
idname = url === "clientArray" && p.keyName !== false ? p.keyName : opers.id;
// we add to pos data array the action - the name is oper
postdata[oper] = ($.trim(postdata[gridId + "_id"]) === "_empty") ? opers.addoper : opers.editoper;
if (postdata[oper] !== opers.addoper) {
Expand Down
16 changes: 8 additions & 8 deletions js/jquery.jqgrid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/jquery.jqgrid.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.jqgrid.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -9827,7 +9827,7 @@
$("#sData", frmtb2).addClass("ui-state-active");
url = o.url || p.editurl;
oper = opers.oper;
idname = url === "clientArray" ? p.keyName : opers.id;
idname = url === "clientArray" && p.keyName !== false ? p.keyName : opers.id;
// we add to pos data array the action - the name is oper
postdata[oper] = ($.trim(postdata[gridId + "_id"]) === "_empty") ? opers.addoper : opers.editoper;
if (postdata[oper] !== opers.addoper) {
Expand Down

0 comments on commit 49d0c75

Please sign in to comment.