Skip to content
Snippets Groups Projects

Resolve "Creating non-timeslot lab requires opening time of slots"

1 file
+ 5
3
Compare changes
  • Side-by-side
  • Inline
@@ -315,10 +315,12 @@
$('#slotOpensAt')
.on('change.datetimepicker', function (e) {
newDate = e.date.add(225, 'minutes');
const newDate = e.date.add(225, 'minutes');
$('#slotClosesAt').datetimepicker('date', newDate);
});
toggleTimeIntervals();
$('#inputTimeIntervals').change(function () {
toggleTimeIntervals();
});
@@ -338,11 +340,11 @@
if ($('input[name=signOffIntervals]').is(':checked')) {
$('#intervalTime').prop('disabled', false);
$('#capacity').prop('disabled', false);
$('#slotSelectionOpensAt').prop('disabled', false);
$('#slotSelectionOpensAt input').prop('disabled', false);
} else {
$('#intervalTime').prop('disabled', true);
$('#capacity').prop('disabled', true);
$('#slotSelectionOpensAt').prop('disabled', true);
$('#slotSelectionOpensAt input').prop('disabled', true);
$('#inputExamLab').prop('checked', false);
$('#percentageExamLab').prop('disabled', true)
}
Loading