Permalink
Browse files

Minor fixes

  • Loading branch information...
1 parent d157eaa commit f85c7e605929c316cd45100c5b03ad716ef207da @tonytomov committed Dec 4, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 js/grid.inlinedit.js
View
@@ -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
@@ -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';
}
}
@@ -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; }

0 comments on commit f85c7e6

Please sign in to comment.