Correct the Learn More button behavior

This commit is contained in:
Alex Tselegidis 2024-07-07 13:01:02 +02:00
parent 8c8aaaa5e7
commit 0242c70fdf

View file

@ -17,7 +17,6 @@
* Old Name: FrontendBook * Old Name: FrontendBook
*/ */
App.Pages.Booking = (function () { App.Pages.Booking = (function () {
const $cookieNoticeLink = $('.cc-link');
const $selectDate = $('#select-date'); const $selectDate = $('#select-date');
const $selectService = $('#select-service'); const $selectService = $('#select-service');
const $selectProvider = $('#select-provider'); const $selectProvider = $('#select-provider');
@ -83,10 +82,12 @@ App.Pages.Booking = (function () {
}, },
}); });
const $cookieNoticeLink = $('.cc-link');
$cookieNoticeLink.replaceWith( $cookieNoticeLink.replaceWith(
$('<a/>', { $('<a/>', {
'data-toggle': 'modal', 'data-bs-toggle': 'modal',
'data-target': '#cookie-notice-modal', 'data-bs-target': '#cookie-notice-modal',
'href': '#', 'href': '#',
'class': 'cc-link', 'class': 'cc-link',
'text': $cookieNoticeLink.text(), 'text': $cookieNoticeLink.text(),