checks and balances, moving on (still some work here needed)

master
Michał 'rysiek' Woźniak 2014-12-27 09:39:49 +01:00
parent 3d5db6c107
commit 34e445ad4c
2 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,7 @@
{% macro posted_text(name) %}{% if (post[name]) %}{{ post[name] }}{% 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">
<h2>Section I. Survey Questionnaire</h2>

View File

@ -179,6 +179,7 @@ function checkPostData(post) {
if (check !== true) {
if (!errors[s]) errors[s] = {}
errors[s][q] = check
console.log('typeof errors[' + s + '][' + q + ']: ' + typeof errors[s][q])
}
}