app/assets/javascripts/admin/formbuilder.js in noodall-form-builder-0.4.2 vs app/assets/javascripts/admin/formbuilder.js in noodall-form-builder-0.5.0
- old
+ new
@@ -1,6 +1,6 @@
function new_form_field(type) {
- if ($.inArray(type, ['text_field', 'select', 'multiselect', 'radio', 'check_box']) == -1) {
+ if ($.inArray(type, ['text_field', 'select', 'multiselect', 'date_field', 'radio', 'check_box']) == -1) {
alert('Unknown field type.');
} else {
// find an index for the new form field (largest index plus one)
var new_index = 0;
$("#form-fields input[name$='[_type]']").each(function(i, el) {