auto format-fix
This commit is contained in:
parent
fc5c15a2c8
commit
ae656679b0
|
|
@ -195,8 +195,7 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
|
|||
// Aktueller Dienst und dessen Schichten Anzeigen
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
if( !isset($DienstID))
|
||||
{
|
||||
if (!isset($DienstID)) {
|
||||
echo "<img src='Bilder/Attention_Sign.svg' width='20px'> Bitte erst Dienst Auswählen </body></html>";
|
||||
exit;
|
||||
}
|
||||
|
|
@ -351,11 +350,15 @@ echo "<p><noscript><button name='ShowSchicht' value='1'>Schicht Anzeigen</button
|
|||
|
||||
</table>
|
||||
<input style="width:unset" width=20 id="Schicht-Automatic-Bis" name="Schicht-Automatic-Bis" type="checkbox" onclick="setEndDate()" <?php
|
||||
if ($AutomaticBis) { echo "checked";}
|
||||
if ($AutomaticBis) {
|
||||
echo "checked";
|
||||
}
|
||||
?> > Endzeit von Dauer<br>
|
||||
|
||||
<input style="width:unset" width=20 id="Schicht-Anschlussschicht" name="Schicht-Anschlussschicht" type="checkbox" <?php
|
||||
if ($Anschlussschicht) { echo "checked"; }
|
||||
if ($Anschlussschicht) {
|
||||
echo "checked";
|
||||
}
|
||||
?> > Anschlussschicht vorbereiten<br>
|
||||
<p>
|
||||
<button name="NewSchicht" value="1">Schicht anlegen</button>
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@ function setEndDate()
|
|||
// because maybe browsers also convert to UTC for the internal value
|
||||
// but I guess in the worst case we have ZZ at the end and the js autofill fails
|
||||
var checkBox = document.getElementById("Schicht-Automatic-Bis");
|
||||
if (checkBox.checked == true)
|
||||
{
|
||||
if (checkBox.checked == true) {
|
||||
var start = new Date(document.getElementById("Schicht-Von").value + 'Z');
|
||||
var delta = new Date("0000-01-01T" + document.getElementById("Schicht-Dauer").value);
|
||||
var end = new Date(start);
|
||||
|
|
|
|||
Loading…
Reference in New Issue