diff --git a/cis/private/tools/zeitaufzeichnung.php b/cis/private/tools/zeitaufzeichnung.php index e0e7d39f6..c4ab1d7e3 100755 --- a/cis/private/tools/zeitaufzeichnung.php +++ b/cis/private/tools/zeitaufzeichnung.php @@ -225,6 +225,28 @@ echo ' return val; } + function checkZeiten() + { + var von_el = document.getElementById("von_uhrzeit"); + var bis_el = document.getElementById("bis_uhrzeit"); + var von_zeit = von_el.value; + var bis_zeit = bis_el.value; + von_arr = von_zeit.split(":"); + bis_arr = bis_zeit.split(":"); + if (von_arr[0].length == 1) + von_arr[0] = foo(von_arr[0]); + if (von_arr[1].length == 1) + von_arr[1] = foo(von_arr[1]); + if (bis_arr[0].length == 1) + bis_arr[0] = foo(bis_arr[0]); + if (bis_arr[1].length == 1) + bis_arr[1] = foo(bis_arr[1]); + von_zeit = von_arr[0]+":"+von_arr[1]; + bis_zeit = bis_arr[0]+":"+bis_arr[1]; + von_el.value = von_zeit; + bis_el.value = bis_zeit; + + } function confdel() { return confirm("'.$p->t("global/warnungWirklichLoeschen").'"); @@ -760,7 +782,7 @@ if($projekt->getProjekteMitarbeiter($user, true)) '.$p->t("global/von").' - '.$p->t("global/bis").' - + '; if ($za_simple == 0) { @@ -784,7 +806,7 @@ if($projekt->getProjekteMitarbeiter($user, true)) echo ' - + '; //Beschreibung