2
0
forked from Wavyzz/dolibarr

Clean code

This commit is contained in:
Laurent Destailleur
2023-05-01 15:09:43 +02:00
parent a4563c7ad4
commit 759ddd2d73
19 changed files with 56 additions and 41 deletions

View File

@@ -63,7 +63,7 @@ function regexEvent(objet,evt,type)
case 'timeChar':
//var regex= /^[0-9:]{1}$/;
//alert(event.charCode);
var charCode = (evt.which) ? evt.which : event.keyCode;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(((charCode >= 48) && (charCode <= 57)) || //num
(charCode===46) || (charCode===8)||// comma & periode