Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the json support for default values

  • Loading branch information...
commit 0a598046e25310fca8a2905ffdb4a7860c2d6046 1 parent c502971
@stas stas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.formbuilder.js
View
4 js/jquery.formbuilder.js
@@ -247,7 +247,7 @@
var value = '';
if (typeof (values) === 'object') {
value = values[0];
- checked = values[1] === 'false' ? false : true;
+ checked = ( values[1] === 'false' || values[1] === 'undefined' ) ? false : true;
}
field = '';
field += '<div>';
@@ -288,7 +288,7 @@
var value = '';
if (typeof (values) === 'object') {
value = values[0];
- checked = values[1] === 'false' ? false : true;
+ checked = ( values[1] === 'false' || values[1] === 'undefined' ) ? false : true;
}
field = '';
field += '<div>';
Please sign in to comment.
Something went wrong with that request. Please try again.