Benjamin Renard commited on 2014-01-06 01:11:43
Showing 1 changed files, with 1 additions and 1 deletions.
... | ... |
@@ -203,7 +203,7 @@ on_valid_add_contribution_modal=function(e) { |
203 | 203 |
alert('Vous devez saisir un coût !'); |
204 | 204 |
return; |
205 | 205 |
} |
206 |
- else if(!RegExp('^[0-9]*(,[0-9]{1,2})*$').test(cost)) { |
|
206 |
+ else if(!RegExp('^[0-9]*((,|\.)[0-9]{1,2})*$').test(cost)) { |
|
207 | 207 |
$('#add_contribution_cost')[0].focus(); |
208 | 208 |
alert('Coût incorrect !'); |
209 | 209 |
return; |
210 | 210 |