From 4dfef3e226c7fb5a64bc37718cedac55ee4845d2 Mon Sep 17 00:00:00 2001 From: ksv741 Date: Sat, 28 Nov 2020 15:57:14 +0300 Subject: [PATCH] fix holiday bug --- src/js/components/holiday.js | 2 +- templates/holiday.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/holiday.js b/src/js/components/holiday.js index 52693f5..bd8c3e2 100644 --- a/src/js/components/holiday.js +++ b/src/js/components/holiday.js @@ -1,7 +1,7 @@ const holidayDescrBtn = document.querySelector('.holiday-descr .turn'), addingService = document.querySelector('.adding-service'); -if(holidayDescrBtn && document.querySelector('.ent-container strong')){ +if(holidayDescrBtn && document.querySelector('.ent-container h2')){ const holidayDescr = holidayDescrBtn.closest('.holiday-descr').querySelector('.holiday-descr__text').offsetHeight; holidayDescrBtn.closest('.holiday-descr').querySelector('.holiday-descr__text').style.height = holidayDescr/3 + 'px'; diff --git a/templates/holiday.php b/templates/holiday.php index 84ed55b..a50bf57 100644 --- a/templates/holiday.php +++ b/templates/holiday.php @@ -29,7 +29,7 @@ if(is_page('24')){?>