highlight current search filter only (bug 696134)
This commit is contained in:
Родитель
13a300a175
Коммит
4cbf144d3b
|
@ -37,7 +37,7 @@
|
|||
{% endmacro %}
|
||||
|
||||
{% macro facet_links(links) %}
|
||||
<ul>
|
||||
<ul class="facet-group">
|
||||
{% for link in links recursive %}
|
||||
<li{% if link.selected %} class="selected"{% endif %}>
|
||||
<a href="{{ request.get_full_path()|urlparams(page=None, **link.urlparams) }}">
|
||||
|
|
|
@ -4,7 +4,8 @@ $(function() {
|
|||
if ($this.hasClass('active')) {
|
||||
var $tgt = $(e.target);
|
||||
if ($tgt.is('a')) {
|
||||
$tgt.closest('ul').find('.selected').removeClass('selected');
|
||||
$tgt.closest('.facet-group').find('.selected')
|
||||
.removeClass('selected');
|
||||
$tgt.closest('li').addClass('selected');
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче