Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Dec 4, 2011
1 parent d157eaa commit f85c7e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/grid.inlinedit.js
Expand Up @@ -7,6 +7,9 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl-2.0.html
**/
//jsHint options
/*global alert */
"use strict";
$.jgrid.inlineEdit = $.jgrid.inlineEdit || {};
$.jgrid.extend({
//Editing
Expand Down Expand Up @@ -180,7 +183,7 @@ $.jgrid.extend({
}
if($t.p.autoencode) { tmp[nm] = $.jgrid.htmlEncode(tmp[nm]); }
if(o.url !== 'clientArray' && cm.editoptions && cm.editoptions.NullIfEmpty === true) {
if(tmp[nm] == "") {
if(tmp[nm] === "") {
tmp3[nm] = 'null';
}
}
Expand Down Expand Up @@ -331,7 +334,7 @@ $.jgrid.extend({
position :"first",
useDefValues : false,
useFormatter : false,
addRowParams : {extraparam:{oper:"add"}, keys:true}
addRowParams : {extraparam:{oper:"add"}}
},p || {});
return this.each(function(){
if (!this.grid ) { return; }
Expand Down

0 comments on commit f85c7e6

Please sign in to comment.