1(function ($) { 2 let isLoading = false; 3 4 $widget = $(`.homelocal-booking-widget`); 5 $widget.on("updating", () => { 6 isLoading = true; 7 }); 8 $widget.on("available", () => { 9 isLoading = false; 10 }); 11 $widget.on("unavailable", () => { 12 isLoading = false; 13 }); 14 15 $(document).on("click", ".homerunner-clear-dates-btn", function () { 16 if (isLoading) { 17 console.debug("Widget is loading, cannot clear dates now."); 18 return false; 19 } 20 21 $(document).trigger("homelocal_availability_calendar_reset_selection"); 22 $(document).trigger("homelocal_booking_widget_reset"); 23 return false; 24 }); 25})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.