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');
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('body').on('click', 'div.cell.foldable > div > h2:first-child', function() {
|
||||
$(this).parents('div.foldable').toggleClass('folded');
|
||||
return false;
|
||||
});
|
||||
$('body').on('click', 'div.cell.foldable > div > h2:first-child', function() {
|
||||
$(this).parents('div.foldable').toggleClass('folded');
|
||||
return false;
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('body').on('click', 'a.calchunk', function(event){
|
||||
event.preventDefault();
|
||||
var $elem = $(this);
|
||||
var url = $elem.data('content-url');
|
||||
$.ajax({
|
||||
url: url,
|
||||
async: true,
|
||||
dataType: 'html',
|
||||
crossDomain: true,
|
||||
success: function(data){
|
||||
$elem.closest('div.calcontent').html(data);
|
||||
},
|
||||
error: function(error){
|
||||
console.log(':(', error);
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').on('click', 'a.calchunk', function(event){
|
||||
event.preventDefault();
|
||||
var $elem = $(this);
|
||||
var url = $elem.data('content-url');
|
||||
$.ajax({
|
||||
url: url,
|
||||
async: true,
|
||||
dataType: 'html',
|
||||
crossDomain: true,
|
||||
success: function(data){
|
||||
$elem.closest('div.calcontent').html(data);
|
||||
},
|
||||
error: function(error){
|
||||
console.log(':(', error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.bookingcalendar table').each(function(idx, elem) { set_booking_calendar_sensitivity(elem); });
|
||||
|
|
Loading…
Reference in New Issue