Skip to content
Showing 1–9 of 10 results
document.addEventListener('DOMContentLoaded', function() {
// Target all RTCL search forms globally
const searchForms = document.querySelectorAll('.rtcl-search-form, .rtcl-search-inline-form, .rtcl-widget-search-form, .classima-listing-search-form');
searchForms.forEach(form => {
form.addEventListener('submit', function() {
// Add loading class to the form for the progress bar
form.classList.add('loading');
// Add loading class to the button to dim it and prevent double-clicks
const btn = form.querySelector('.rtin-search-btn, .rtcl-btn');
if (btn) {
btn.classList.add('loading');
}
});
});
});