From 6f15bbd21f129b1dfdf680530896a9cf22efcbdc Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Wed, 22 Oct 2025 10:40:34 +0200 Subject: [PATCH] bugfix datumseingabe_tage --- .../webapp/js/imixs-office.workitem.custom.js | 12 ------- .../parts/alexander/datumseingabe_tage.xhtml | 33 ++++++++----------- 2 files changed, 14 insertions(+), 31 deletions(-) diff --git a/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js b/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js index 8e8e7e2..189848a 100644 --- a/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js +++ b/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js @@ -1,15 +1,6 @@ // custom scripts // Zusatzfunktionen zur schnelleren Datumseingabe - -/** - * - */ -$(document).ready(function () { - initFaelligkeit(); - -}); - /* * Hier setzen wir einen Event handler und berechnen anhand der Eingabe im Feld alexander-logistic-date-days * ein neues Datum auf basis des Rechnungsdatum (date_invoice) @@ -63,17 +54,14 @@ function initFaelligkeit(ajax_event) { // TT.MM.YY // jahreszahl falls zweistellig function validateBuchungsDatum(item) { - //var mhd = $("[id$=mhdinput_id]"); var mhd = $(item); var text = $(mhd).val(); - while (text.indexOf('-') > -1) { text = text.replace("-", "."); } var d = new Date(); - // check for TTMMYY if (text.length == 6 && text.indexOf('.') == -1) { text = text.substring(0, 2) + "." + text.substring(2, 4) diff --git a/office-alexander-logistics-app/src/main/webapp/pages/workitems/parts/alexander/datumseingabe_tage.xhtml b/office-alexander-logistics-app/src/main/webapp/pages/workitems/parts/alexander/datumseingabe_tage.xhtml index 63be7e3..c260f8a 100644 --- a/office-alexander-logistics-app/src/main/webapp/pages/workitems/parts/alexander/datumseingabe_tage.xhtml +++ b/office-alexander-logistics-app/src/main/webapp/pages/workitems/parts/alexander/datumseingabe_tage.xhtml @@ -1,29 +1,24 @@ - - + - - + - - - + + + + - + - + - - + \ No newline at end of file