diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php
index 23c26ee..a8a3c19 100755
--- a/frontend/views/layouts/main.php
+++ b/frontend/views/layouts/main.php
@@ -125,7 +125,7 @@ AppAsset::register($this);
Проекты
-
+
- Проекты
- Исполнители
- Заказчики
diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css
index 0c0f163..cefd178 100755
--- a/frontend/web/css/style.css
+++ b/frontend/web/css/style.css
@@ -4979,9 +4979,10 @@ input.custom-check:checked + label span, input.custom-check:checked + label:hove
border-bottom: 1px solid #b7b7b7;
display: none;
}
+.search-list ul.active {display: block}
.search-list li {
list-style: none;
- padding: 0 20px 0 10px;
+ padding: 0 0 0 10px;
border-top: 1px solid #b7b7b7;
height: 20px;
line-height: 20px;
@@ -4989,6 +4990,8 @@ input.custom-check:checked + label span, input.custom-check:checked + label:hove
font-size: 13px;
color: #b7b7b7;
cursor: pointer;
+ width: 118px;
+ box-sizing: border-box;
}
.search-list li:hover {
transition: 0.2s;
diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js
index 7a702a7..f8524c2 100755
--- a/frontend/web/js/script.js
+++ b/frontend/web/js/script.js
@@ -826,4 +826,28 @@ $(document).ready(function(){
}
+
+ $('.search-list span').click(function(){
+ if($('.search-ul').hasClass('active')) {
+ $('.search-list ul').removeClass('active');
+ $('.search-main-menu form input').focus()
+ } else {
+ $('.search-list ul').addClass('active');
+
+ }
+ $('.search-list ul.active li').click(function(){
+ $('.search-list ul').removeClass('active');
+ $('.search-list span').html($(this).text())
+ var searchListIndex = $(this).index()
+ searchListIndex = searchListIndex+1
+ $('.search-main-menu form input[type="hidden"]').val(searchListIndex)
+ $('.search-main-menu form input').focus()
+ })
+
+
+
+ })
+
+
+
});
\ No newline at end of file
--
libgit2 0.21.4