general: add js to handle cells with folded/foldable classes (#19467)

This commit is contained in:
Josue Kouka 2017-10-18 11:31:04 +02:00
parent 4a2c08cf67
commit 4b2b0b9d6b
1 changed files with 7 additions and 0 deletions

View File

@ -199,6 +199,13 @@ $(function() {
$(checkboxes[checkboxes.length-1]).parents('tr').next().find('td:nth-child(' + (column_index+1) + ')').addClass('clickable');
}
$(function() {
$('body').on('click', 'div.cell.foldable > div > h2:first-child', function() {
$(this).parents('div.foldable').toggleClass('folded');
return false;
});
});
$('.bookingcalendar table').each(function(idx, elem) { set_booking_calendar_sensitivity(elem); });
$('.bookingcalendar input').on('change', function() {