Fix FAQ expanders and quote form JavaScript

- Fix FAQ accordion: change from display:none to max-height animation
- Add .active class selectors alongside [aria-expanded="true"]
- Fix quote.php: add missing closing brackets for event listeners
- Fix Promise chain indentation in quote form submission

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
root
2025-12-08 07:27:54 +00:00
parent 63f48eeb6a
commit 8592b8d341
2 changed files with 23 additions and 12 deletions

View File

@@ -966,13 +966,15 @@ $breadcrumbs = [
showMessage('error', 'There was a problem with your submission:', errorMessages);
}
})
.catch(error => {
console.error('Error:', error);
showMessage('error', 'Connection Error', 'There was an error sending your quote request. Please check your internet connection and try again, or contact us directly at info@ukdataservices.co.uk');
})
.finally(() => {
submitButton.textContent = originalText;
submitButton.disabled = false;
.catch(error => {
console.error('Error:', error);
showMessage('error', 'Connection Error', 'There was an error sending your quote request. Please check your internet connection and try again, or contact us directly at info@ukdataservices.co.uk');
})
.finally(() => {
submitButton.textContent = originalText;
submitButton.disabled = false;
});
});
});
});
});