From d8a03a50ab855c2696c7bdc9aa08b60bd8e03de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien?= Date: Sun, 10 May 2020 00:01:17 +0200 Subject: [PATCH 1/2] Fix display of service details when the service change on the booking process page. --- assets/js/frontend_book.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 3f8d9876..1383fdc2 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -712,9 +712,13 @@ window.FrontendBook = window.FrontendBook || {}; } }); - $div - .html(html) - .toggle(html); + $div.html(html); + + if (html) { + $div.show(); + } else { + $div.hide(); + } } })(window.FrontendBook); From 3c85c420c521417d11b839c53deb34054b1832c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien?= Date: Fri, 15 May 2020 15:05:30 +0200 Subject: [PATCH 2/2] Fix sercice details display on booking page. --- application/views/appointments/book.php | 2 +- assets/js/frontend_book.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/application/views/appointments/book.php b/application/views/appointments/book.php index 3ac56825..5dee71c8 100755 --- a/application/views/appointments/book.php +++ b/application/views/appointments/book.php @@ -156,7 +156,7 @@ - +
diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 2c78d362..4e2988f0 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -737,7 +737,9 @@ window.FrontendBook = window.FrontendBook || {}; 'text': service.description }) .appendTo($serviceDescription); + } + if (service.duration || Number(service.price) > 0 || service.location) { $('
') .appendTo($serviceDescription); }