Training and Courses
window.ameliaEventsLoaded = function (events) {
jQuery(".am-event-list").ready(function() {
jQuery(".am-event").each(function(index) {
$(".am-event-price").each(function() {
var curBColor = $(this).css('background-color');
});
var price_item = $('.am-event-price', $(this));
var bgp = price_item.css('background-color');
var colorp = price_item.css('color');
var event_month = $('.am-event-date-month', $(this));
event_month.css({
backgroundColor: bgp,
color: colorp
});
var event_title = $('.am-event-title', $(this));
event_title.css({ color: bgp });
});
})
};
$(document).ready(function() {
$(document).on('click', '.am-event-book-continue', function() {
$(".am-cf-10").css("display", "none");
});
});
window.afterConfirmBooking = function(appointment, bookable, provider, location) {
if (appointment.bookings[0].customFields[10].value === "" ) {
var now2 = new Date();
var day2 = ("0" + now2.getDate()).slice(-2);
var month2 = ("0" + (now2.getMonth() + 1)).slice(-2);
var today2 = now2.getFullYear()+"-"+(month2)+"-"+(day2);
appointment.bookings[0].customFields[10].value = today2;
}
}