From 8cda2447f4130a9512328176c29db911daa3a4c7 Mon Sep 17 00:00:00 2001 From: Waldemar Toews Date: Wed, 22 Jul 2015 10:00:26 +0200 Subject: [PATCH] Datumvalidierung bei ENTER, d.h bei onchange, nich bei onblur. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Beim Bestätigen der Datumseingabe mit ENTER statt mit TAB wird die Funktion nicht getriggert, und ungültiges Datum wird übernommen. OnBlur Event für alle Datumsfelder auf OnChange umgestellt. --- SL/Template/Plugin/L.pm | 2 +- bin/mozilla/io.pl | 2 +- templates/webpages/is/_payments.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 56dd4fbe8..bf6c9d5c8 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -181,7 +181,7 @@ sub date_tag { return $self->input_tag( $name, blessed($value) ? $value->to_lxoffice : $value, size => 11, - onblur => "check_right_date_format(this);", + onchange => "check_right_date_format(this);", %params, %class, @onchange, ); diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index ec4e1e65c..b288291a8 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -386,7 +386,7 @@ sub display_row { '-labels' => \%projectnumber_labels, '-default' => $form->{"project_id_$i"} )); - $column_data{reqdate} = qq||; + $column_data{reqdate} = qq||; $column_data{subtotal} = sprintf qq||, $form->{"subtotal_$i"} ? 'checked' : ''; # begin marge calculations diff --git a/templates/webpages/is/_payments.html b/templates/webpages/is/_payments.html index ffab3210f..ce4cb8ab4 100644 --- a/templates/webpages/is/_payments.html +++ b/templates/webpages/is/_payments.html @@ -117,7 +117,7 @@ -- 2.20.1