checks and balances, moving on (still some work here needed)
parent
3d5db6c107
commit
34e445ad4c
|
@ -145,7 +145,7 @@
|
||||||
|
|
||||||
{% macro posted_text(name) %}{% if (post[name]) %}{{ post[name] }}{% endif %}{% endmacro %}
|
{% macro posted_text(name) %}{% if (post[name]) %}{{ post[name] }}{% endif %}{% endmacro %}
|
||||||
{% macro posted_radio(name, val) %}{% if (post[name] == val) %} checked{% endif %}{% endmacro %}
|
{% macro posted_radio(name, val) %}{% if (post[name] == val) %} checked{% endif %}{% endmacro %}
|
||||||
{% macro fieldset_class(s, q) %}question {{s}} {{q}}{% if (errors) && (errors[s]) %}{% if (errors[s][q] === false) %} error{% elif (errors.length > 0) %} error{% endif %}{% endif %}{% endmacro %}
|
{% macro fieldset_class(s, q) %}question {{s}} {{q}}{% if (errors) && (errors[s]) %}{% if (errors[s][q] === false) %} error{% elseif (errors[s][q]) %} error{% endif %}{% endif %}{% endmacro %}
|
||||||
|
|
||||||
<div class="section-container">
|
<div class="section-container">
|
||||||
<h2>Section I. Survey Questionnaire</h2>
|
<h2>Section I. Survey Questionnaire</h2>
|
||||||
|
|
|
@ -179,6 +179,7 @@ function checkPostData(post) {
|
||||||
if (check !== true) {
|
if (check !== true) {
|
||||||
if (!errors[s]) errors[s] = {}
|
if (!errors[s]) errors[s] = {}
|
||||||
errors[s][q] = check
|
errors[s][q] = check
|
||||||
|
console.log('typeof errors[' + s + '][' + q + ']: ' + typeof errors[s][q])
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue