Permalink
Browse files

Merge pull request #380 from kccarter/patch-1

Update js/jquery.fmatter.js
  • Loading branch information...
2 parents 899a8b1 + b398cf3 commit d3b27c1ece523d10109e363f26bc2b6ca5d22c12 @tonytomov committed Nov 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.fmatter.js
View
@@ -271,7 +271,7 @@
if(op.disabled===true) {ds = "disabled=\"disabled\"";} else {ds="";}
if($.fmatter.isEmpty(cval) || $.fmatter.isUndefined(cval) ) {cval = $.fn.fmatter.defaultFormat(cval,op);}
cval=cval+"";cval=cval.toLowerCase();
- var bchk = cval.search(/(false|0|no|off)/i)<0 ? " checked='checked' " : "";
+ var bchk = cval.search(/(false|0|no|n|off)/i)<0 ? " checked='checked' " : "";
return "<input type=\"checkbox\" " + bchk + " value=\""+ cval+"\" offval=\"no\" "+ds+ "/>";
};
$.fn.fmatter.link = function(cellval, opts) {

0 comments on commit d3b27c1

Please sign in to comment.