mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-06 13:26:05 -06:00
Merge pull request #865 from openclassify/muammer_#2806
#2806 base theme home cats show close button bug fixed
This commit is contained in:
commit
40b45cf3a0
@ -1,3 +1,4 @@
|
|||||||
$('.categories-list .show-all').on('click', function () {
|
$('.categories-list .show-all').on('click', function () {
|
||||||
$(this).siblings('.hidden-category').toggleClass('hidden')
|
$(this).siblings('.hidden-category').toggleClass('hidden')
|
||||||
})
|
$(this).find('a span').toggleClass('hidden')
|
||||||
|
})
|
||||||
|
|||||||
@ -11,4 +11,5 @@ return [
|
|||||||
'email' => 'Email',
|
'email' => 'Email',
|
||||||
'phone' => 'Phone',
|
'phone' => 'Phone',
|
||||||
'show_all' => 'Show All',
|
'show_all' => 'Show All',
|
||||||
|
'hide_all' => 'Hide All',
|
||||||
];
|
];
|
||||||
@ -45,8 +45,15 @@
|
|||||||
{% if count(sub_categories) > sub_categories_limit %}
|
{% if count(sub_categories) > sub_categories_limit %}
|
||||||
<li class="show-all" data-limit="{{ sub_categories_limit }}">
|
<li class="show-all" data-limit="{{ sub_categories_limit }}">
|
||||||
<a>
|
<a>
|
||||||
{{ trans('visiosoft.theme.base::button.show_all') }}
|
<span class="">
|
||||||
<i class="fas fa-arrow-circle-down"></i>
|
{{ 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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user