[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 69/73: Javascript format date, transform spac
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 69/73: Javascript format date, transform space into dot |
Date: |
Fri, 28 May 2021 05:26:51 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2686c724ed61b5f0c38e2fb4261b17d554fce64e
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed May 26 12:44:38 2021 +0200
Javascript format date, transform space into dot
---
html/js/scripts.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/html/js/scripts.js b/html/js/scripts.js
index 46f92b0..2db4bbf 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -338,13 +338,14 @@ function format_number(obj, p_prec)
}
/**
- * Replace slash and minus by dot
+ * Replace slash , space and minus by dot
* @param p_object
*/
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,'.');
}
/**
*@brief check if the object is hidden or show and perform the opposite,
- [Noalyss-commit] [noalyss] 48/73: PLpgSQL function , format properly the accounting before inserting fiche_detail and tmp_pcmn tables, (continued)
- [Noalyss-commit] [noalyss] 48/73: PLpgSQL function , format properly the accounting before inserting fiche_detail and tmp_pcmn tables, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 51/73: Code rewriting : doc and remove duplicated function, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 58/73: Improve Manage_Table_SQL : missing param for execute-query, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 59/73: Correct menu PARAM, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 61/73: Bootstrap 4.6, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 64/73: cosmetic : menu on small screen, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 66/73: Devise correct autoliquidation not taken into account for currency, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 67/73: remove debug info, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 68/73: Payment by bank : currency info was missing, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 70/73: Bootstrap 4.6, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 69/73: Javascript format date, transform space into dot,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 71/73: Cosmetic : adapt for small screen , add border to cells, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 72/73: code improve rename scripts.js -> noalyss_script.js, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 73/73: Balance : code cleaning and cosmetic, Dany De Bontridder, 2021/05/28