diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-30 16:30:51 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-30 16:30:51 +0100 |
commit | 79a3a53313a594f365caf66fa4d44b3fb69f4f05 (patch) | |
tree | 2f220de2f3e85e9dc5d7bb947ad6aa17ac49dc83 | |
parent | 4d8b021ccc11e7e223fd8cdd1098d16ec3cfbe47 (diff) | |
download | Chimère - projet Saclay-79a3a53313a594f365caf66fa4d44b3fb69f4f05.tar.bz2 Chimère - projet Saclay-79a3a53313a594f365caf66fa4d44b3fb69f4f05.zip |
Forms: fix validation
-rw-r--r-- | templates/chimere/edit.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/chimere/edit.html b/templates/chimere/edit.html index 23df7aa..ff37398 100644 --- a/templates/chimere/edit.html +++ b/templates/chimere/edit.html @@ -197,7 +197,7 @@ var input_id = validation[idx]; var selec = '[name=' + input_id + ']'; var val = jQuery(selec).val(); - if (!val || val == '0' || + if (!val || val == '0' || val == '' || val == 'None' || (input_id == 'id_submiter_email' && !isValidEmailAddress(val))){ jQuery(selec).parent().addClass('warning'); |