Skip to content
Browse files

Test for null or undefined of rowid as suggested.

  • Loading branch information...
1 parent 8622273 commit 995a0c84451ce4667ed47f8dd2feee9d5c0acd78 @tonytomov committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/grid.inlinedit.js
View
2 js/grid.inlinedit.js
@@ -386,7 +386,7 @@ $.jgrid.extend({
return this.each(function(){
if (!this.grid ) { return; }
var $t = this;
- p.rowID = $.isFunction(p.rowID) ? p.rowID.call($t, p) : ( (p.rowID !== null) ? p.rowID : $.jgrid.randId());
+ p.rowID = $.isFunction(p.rowID) ? p.rowID.call($t, p) : ( (p.rowID != null) ? p.rowID : $.jgrid.randId());
if(p.useDefValues === true) {
$($t.p.colModel).each(function(){
if( this.editoptions && this.editoptions.defaultValue ) {

0 comments on commit 995a0c8

Please sign in to comment.
Something went wrong with that request. Please try again.