1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-24 22:42:33 +01:00

Fix allineamento orari sessioni in line

This commit is contained in:
MatteoPistorello 2024-03-06 11:57:36 +01:00
parent aa1abce671
commit ef16c663eb

View File

@ -335,6 +335,19 @@ if (empty($sessioni)) {
}
echo '
$("[id^=data_inizio_]").on("dp.change", function (e) {
let data_fine = $("#data_fine_" + $(this).closest("tr").data("id"));
if(data_fine.data("DateTimePicker").date() < e.date){
data_fine.data("DateTimePicker").date(e.date);
}
});
$("[id^=data_fine_]").on("dp.change", function (e) {
let data_inizio = $("#data_inizio_" + $(this).closest("tr").data("id"));
if(data_inizio.data("DateTimePicker").date() > e.date){
data_inizio.data("DateTimePicker").date(e.date);
}
});
});
/*
@ -430,12 +443,6 @@ $("[id^=data_inizio_], [id^=data_fine_]").on("dp.hide", function (e) {
aggiornaSessioneInline($(this).closest("tr").data("id"));
});
$("[id^=data_fine_]").on("dp.change", function (e) {
if($("[id^=data_inizio_]").data("DateTimePicker").date() > e.date){
$("[id^=data_inizio_]").data("DateTimePicker").date(e.date);
}
});
function caricaTecnici() {
let container = $("#tecnici");