|
|
@ -152,7 +152,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 |
|
|
@ -173,6 +173,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) { |
|
|
|