From 41c8187b41309e260c6bdc7a9964818e0b26efcb Mon Sep 17 00:00:00 2001 From: AK Delfin Date: Tue, 15 Nov 2022 10:45:49 +0300 Subject: [PATCH] add calendar search --- header.php | 2 +- search.php | 9 ++++++--- style.css | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/header.php b/header.php index 58b63f2..24c02ee 100644 --- a/header.php +++ b/header.php @@ -10,7 +10,7 @@ - + diff --git a/search.php b/search.php index cae819b..c0f094f 100644 --- a/search.php +++ b/search.php @@ -178,7 +178,7 @@ endif; -
+
- @@ -243,8 +243,11 @@ get_template_part( '/blocks/paginator');?> search_date_select.addEventListener('change', function() { if (search_date_select.selectedIndex == 4) { - data_range_panel.style.visibility = "visible"; - } + data_range_panel.style.display = 'block'; + } + else { + data_range_panel.style.display = 'none'; + } }) diff --git a/style.css b/style.css index d5ba9d0..ea2ee9f 100644 --- a/style.css +++ b/style.css @@ -289,6 +289,7 @@ a{ #search-calendar{ margin-top: 18px; + display: none; } .search-select-type{