[edit] batch added on click on date

et#25
tribikram 2 years ago
parent c8f0fe2d1e
commit 8ea2a5855f
  1. 11
      resources/views/appointment.blade.php

@ -164,7 +164,7 @@
}); });
$calender.on('zabuto:calendar:day', function (e) { $calender.on('zabuto:calendar:day', function (e) {
var now = new Date();
var date = e.date; var date = e.date;
//get available time for selected date //get available time for selected date
@ -185,6 +185,15 @@
} }
}); });
if (e.today) {
$(e.element).css('color', 'blue');
} else if (e.date.getTime() < now.getTime()) {
$(e.element).html('<span class="badge bg-danger">'+ e.date.getDate() +'</span>');
} else {
$(e.element).html('<span class="badge bg-success">'+ e.date.getDate() +'</span>');
}
}) })
} }
function dispalyAppointments(appointments,formated_date,id) { function dispalyAppointments(appointments,formated_date,id) {

Loading…
Cancel
Save