[FIX] HORILLA VIEWS: Filter tag not working in the card view
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<div style="display: none">{{filter_dict}}</div>
|
<div style="display: none">{{filter_dict}}</div>
|
||||||
<script>
|
<script>
|
||||||
function fieldLabel(value, field) {
|
function fieldLabel(value, field) {
|
||||||
if ({{keys_to_remove|safe}}.includes(field)) {
|
if (`{{keys_to_remove|safe}}`.includes(field)) {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
fiedlElem = $(`#applyFilter`).closest(`form`).find(`[name=${field}]`);
|
fiedlElem = $(`#applyFilter`).closest(`form`).find(`[name=${field}]`);
|
||||||
|
|||||||
@@ -129,7 +129,6 @@
|
|||||||
filterData[key] = value;
|
filterData[key] = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(filterData)
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: `{% url 'last-applied-filter' %}`,
|
url: `{% url 'last-applied-filter' %}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user