misc: remove unnecessary double namespacing from js code (#31093)
This commit is contained in:
parent
331741a091
commit
0e224961b8
|
@ -209,31 +209,27 @@ $(function() {
|
||||||
$(checkboxes[checkboxes.length-1]).parents('tr').next().find('td:nth-child(' + (column_index+1) + ')').addClass('clickable');
|
$(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() {
|
||||||
$('body').on('click', 'div.cell.foldable > div > h2:first-child', function() {
|
$(this).parents('div.foldable').toggleClass('folded');
|
||||||
$(this).parents('div.foldable').toggleClass('folded');
|
return false;
|
||||||
return false;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
$('body').on('click', 'a.calchunk', function(event){
|
||||||
$('body').on('click', 'a.calchunk', function(event){
|
event.preventDefault();
|
||||||
event.preventDefault();
|
var $elem = $(this);
|
||||||
var $elem = $(this);
|
var url = $elem.data('content-url');
|
||||||
var url = $elem.data('content-url');
|
$.ajax({
|
||||||
$.ajax({
|
url: url,
|
||||||
url: url,
|
async: true,
|
||||||
async: true,
|
dataType: 'html',
|
||||||
dataType: 'html',
|
crossDomain: true,
|
||||||
crossDomain: true,
|
success: function(data){
|
||||||
success: function(data){
|
$elem.closest('div.calcontent').html(data);
|
||||||
$elem.closest('div.calcontent').html(data);
|
},
|
||||||
},
|
error: function(error){
|
||||||
error: function(error){
|
console.log(':(', error);
|
||||||
console.log(':(', error);
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.bookingcalendar table').each(function(idx, elem) { set_booking_calendar_sensitivity(elem); });
|
$('.bookingcalendar table').each(function(idx, elem) { set_booking_calendar_sensitivity(elem); });
|
||||||
|
|
Loading…
Reference in New Issue