Skip to content

Commit

Permalink
resetting of inlineNav toolbar buttons required in case of saving error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Apr 2, 2013
1 parent a1ed40c commit 9c366d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/grid.inlinedit.js
Expand Up @@ -396,7 +396,10 @@ $.jgrid.extend({
$(ind).attr("editable","0").unbind("keydown");
$t.p.savedRow.splice(fr,1);
if($("#"+$.jgrid.jqID(rowid), "#"+$.jgrid.jqID($t.p.id)).hasClass("jqgrid-new-row")){
setTimeout(function(){$($t).jqGrid("delRowData",rowid);},0);
setTimeout(function(){
$($t).jqGrid("delRowData",rowid);
$($t).jqGrid('showAddEditButtons');
},0);
}
}
$($t).triggerHandler("jqGridInlineAfterRestoreRow", [rowid]);
Expand Down

0 comments on commit 9c366d9

Please sign in to comment.