summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit79a3a53313a594f365caf66fa4d44b3fb69f4f05 (patch)
tree2f220de2f3e85e9dc5d7bb947ad6aa17ac49dc83
parent4d8b021ccc11e7e223fd8cdd1098d16ec3cfbe47 (diff)
downloadChimère - projet Saclay-79a3a53313a594f365caf66fa4d44b3fb69f4f05.tar.bz2
Chimère - projet Saclay-79a3a53313a594f365caf66fa4d44b3fb69f4f05.zip
Forms: fix validation
-rw-r--r--templates/chimere/edit.html2
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');