Skip to content

Commit 05c96f1

Browse files
author
Thansen
committed
Merge pull request #2 from shinbuntu/master
Fix control of optional value if value is 0
2 parents 40b2dcf + f7c167c commit 05c96f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jquery.controle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
return truev;
9090
}
9191

92-
oblig = classes[index0 + 1] == 'form-oblig' || value != '';
92+
oblig = classes[index0 + 1] == 'form-oblig' || value != '' && value != 0;
9393
typeDonnee = classes[index0 + 2].replace('form-', '');
9494

9595
if(oblig && typeDonnee in regularExpressions){

jquery.controle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)