#2806 base theme home cats show close button bug fixed

This commit is contained in:
Muammer Top 2020-12-16 11:37:59 +03:00
parent 35ee03820d
commit 1fad8e34ca
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,4 @@
$('.categories-list .show-all').on('click', function () {
$(this).siblings('.hidden-category').toggleClass('hidden')
})
$(this).find('a').find('span').toggleClass('hidden')
})

View File

@ -11,4 +11,5 @@ return [
'email' => 'Email',
'phone' => 'Phone',
'show_all' => 'Show All',
'hide_all' => 'Hide All',
];

View File

@ -45,8 +45,15 @@
{% if count(sub_categories) > sub_categories_limit %}
<li class="show-all" data-limit="{{ sub_categories_limit }}">
<a>
{{ trans('visiosoft.theme.base::button.show_all') }}
<i class="fas fa-arrow-circle-down"></i>
<span class="">
{{ trans('visiosoft.theme.base::button.show_all') }}
<i class="fas fa-arrow-circle-down"></i>
</span>
<span class="hidden">
{{ trans('visiosoft.theme.base::button.hide_all') }}
<i class="fas fa-arrow-circle-up"></i>
</span>
</a>
</li>
{% endif %}