Skip to content

Commit

Permalink
Merge pull request #840 from abhishek-webkul/gli-1433
Browse files Browse the repository at this point in the history
Fixed: Calendar tooltips reappear on admin book now page after adding or removing rooms from cart
  • Loading branch information
rohit053 authored Dec 28, 2023
2 parents fc8d790 + c3d827c commit a48ec96
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ $(document).ready(function() {
url: rooms_booking_url,
method: 'POST',
extraParams: function() {
removeInitializedTooltips();

return $.extend(
{
ajax: true,
Expand Down Expand Up @@ -183,6 +185,14 @@ $(document).ready(function() {
calendar.render();
}

function removeInitializedTooltips() {
$('#fullcalendar a.day-info, #fullcalendar .fc-daygrid-event').each(function () {
if ($(this).data('ui-tooltip')) {
$(this).tooltip('destroy');
}
});
}

function getSearchData()
{
return {
Expand Down

0 comments on commit a48ec96

Please sign in to comment.