Skip to content

Commit

Permalink
Fixed clicking checkbox not applying filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jairus Martin committed Mar 12, 2014
1 parent 7b4ea1f commit 7750e82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion xadmin/static/xadmin/js/xadmin.plugin.filters.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
(function($) {

$(function(){


// filter
$('.filter-multiselect input[type=checkbox]').click(function(e){
window.location.href = $(this).parent().attr('href');
});

// menber filter
$('.filter-number .remove').click(function(e){
$(this).parent().parent().find('input[type="number"]').val('');
Expand Down
2 changes: 1 addition & 1 deletion xadmin/templates/xadmin/filters/checklist.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
<li class="dropdown-submenu">
<li class="dropdown-submenu filter-multiselect">
<a><i class="icon-filter {% if spec.is_used %}text-success{%else%}text-muted{% endif %}"></i> {{ title }}</a>
<ul class="dropdown-menu">
{% for choice in choices %}
Expand Down

0 comments on commit 7750e82

Please sign in to comment.