Merge branch 'spidev' into 'master'
Zeiterfassung Ersatzruhe Implementierung See merge request fronk/thetool!1419
This commit is contained in:
@@ -310,6 +310,7 @@ $(document).ready(function () {
|
||||
$('#days-div').show();
|
||||
$('#days-div').find('label').text('Anzahl Tage');
|
||||
$('#days-div').find('input').attr("step", "1");
|
||||
$('#days-div').find('input').attr("min", "");
|
||||
$('#days-div').find('input').val("");
|
||||
|
||||
$('#days').prop("required", true);
|
||||
@@ -346,6 +347,26 @@ $(document).ready(function () {
|
||||
$('#days-div').show();
|
||||
$('#days-div').find('label').text('Anzahl Stunden');
|
||||
$('#days-div').find('input').attr("step", "0.01");
|
||||
$('#days-div').find('input').attr("min", "");
|
||||
$('#days').prop("required", true);
|
||||
$('#days-div').find('input').val("");
|
||||
} else if (parseInt($(this).find(':selected').data('hourday')) === 9) {
|
||||
$("#endtime-div").hide();
|
||||
$("#endtime-div").find('input').each(function () {
|
||||
$(this).prop("required", false);
|
||||
$(this).prop("disabled", true);
|
||||
|
||||
});
|
||||
$("#enddate-div").hide();
|
||||
$("#enddate-div").find('input').each(function () {
|
||||
$(this).prop("required", false);
|
||||
$(this).prop("min", '');
|
||||
$(this).val('');
|
||||
});
|
||||
$('#days-div').show();
|
||||
$('#days-div').find('label').text('Anzahl Stunden');
|
||||
$('#days-div').find('input').attr("step", "0.01");
|
||||
$('#days-div').find('input').attr("min", "0");
|
||||
$('#days').prop("required", true);
|
||||
$('#days-div').find('input').val("");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user