Skip to content

Commit 7750e82

Browse files
author
Jairus Martin
committed
Fixed clicking checkbox not applying filter
1 parent 7b4ea1f commit 7750e82

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

xadmin/static/xadmin/js/xadmin.plugin.filters.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
(function($) {
22

33
$(function(){
4-
4+
5+
// filter
6+
$('.filter-multiselect input[type=checkbox]').click(function(e){
7+
window.location.href = $(this).parent().attr('href');
8+
});
9+
510
// menber filter
611
$('.filter-number .remove').click(function(e){
712
$(this).parent().parent().find('input[type="number"]').val('');

xadmin/templates/xadmin/filters/checklist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% load i18n %}
2-
<li class="dropdown-submenu">
2+
<li class="dropdown-submenu filter-multiselect">
33
<a><i class="icon-filter {% if spec.is_used %}text-success{%else%}text-muted{% endif %}"></i> {{ title }}</a>
44
<ul class="dropdown-menu">
55
{% for choice in choices %}

0 commit comments

Comments
 (0)