[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/06: Task #0002089: Saisie Date : accepté u
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/06: Task #0002089: Saisie Date : accepté uniquement l'année |
Date: |
Mon, 15 Nov 2021 11:33:32 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 16c16ad905db898cff8ecb2fa9903cdfa95c4f2f
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Nov 12 13:31:27 2021 +0100
Task #0002089: Saisie Date : accepté uniquement l'année
---
html/js/noalyss_script.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js
index 5a5301f..34385cb 100644
--- a/html/js/noalyss_script.js
+++ b/html/js/noalyss_script.js
@@ -345,6 +345,12 @@ function format_date(p_object)
p_object.value=p_object.value.replace(/\//g,'.');
p_object.value=p_object.value.replace(/-/g,'.');
p_object.value=p_object.value.replace(/ /g,'.');
+ p_object.value=p_object.value.replace(/\.\./g,'.');
+ var tmp_value = p_object.value;
+ a_split=tmp_value.split('.');
+ if (a_split[2] && a_split[2].match(/[0-9]{2}/)) {
+ p_object.value=a_split[0]+"."+a_split[1]+"."+"20"+a_split[2];
+ }
}
/**
*@brief check if the object is hidden or show and perform the opposite,
- [Noalyss-commit] [noalyss] branch master updated (2b1bcd5 -> 4e2ec04), Dany De Bontridder, 2021/11/15
- [Noalyss-commit] [noalyss] 02/06: Task #0002089: Saisie Date : accepté uniquement l'année,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 01/06: Typo upgrade script 169, Dany De Bontridder, 2021/11/15
- [Noalyss-commit] [noalyss] 04/06: Fix : TVA France default 20,0%, Dany De Bontridder, 2021/11/15
- [Noalyss-commit] [noalyss] 03/06: Task #0002090: TVA : selection TVA , possibilité d'ordonner les colonnes, Dany De Bontridder, 2021/11/15
- [Noalyss-commit] [noalyss] 05/06: Bug detail operation : analytic doesn't compute properly, Dany De Bontridder, 2021/11/15
- [Noalyss-commit] [noalyss] 06/06: Card Update : add button close, Dany De Bontridder, 2021/11/15