Fix calcolo e limitazioni data competenza

This commit is contained in:
loviuz 2019-11-26 16:12:30 +01:00
parent 8ada395473
commit 88e35be957
1 changed files with 10 additions and 1 deletions

View File

@ -788,6 +788,15 @@ $(document).ready(function () {
if(data.data("DateTimePicker").date() < e.date){ if(data.data("DateTimePicker").date() < e.date){
data.data("DateTimePicker").date(e.date); data.data("DateTimePicker").date(e.date);
} }
}) });
$("#data").on("dp.change", function (e) {
var data_competenza = $("#data_competenza");
data_competenza.data("DateTimePicker").minDate(e.date);
if(data_competenza.data("DateTimePicker").date() < e.date){
data_competenza.data("DateTimePicker").date(e.date);
}
});
}); });
</script>'; </script>';