Skip to content

Commit

Permalink
Merge pull request #41 from farhan0581/pre_release
Browse files Browse the repository at this point in the history
Changes to fix issue in javascript in Pypi version 0.6
  • Loading branch information
farhan0581 committed Jul 22, 2020
2 parents b08805e + 35210a3 commit 884ff2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![PyPI version](https://badge.fury.io/py/django-admin-autocomplete-filter.svg)](https://badge.fury.io/py/django-admin-autocomplete-filter)
[![PyPI version](https://badge.fury.io/py/django-admin-autocomplete-filter.svg?kill_cache=1)](https://badge.fury.io/py/django-admin-autocomplete-filter)

Django Admin Autocomplete Filter
================================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
django.jQuery(document).ready(function () {
django.jQuery('#changelist-filter select').on(
django.jQuery('#changelist-filter select, #grp-filters select').on(
'change',
function (e, choice) {
var val = django.jQuery(e.target).val() || '';
Expand All @@ -18,7 +18,7 @@ function search_replace(name, value) {
new_search_hash[decodeURIComponent(name)] = [];
new_search_hash[decodeURIComponent(name)].push(decodeURIComponent(value));
} else {
remove new_search_hash[decodeURIComponent(name)];
delete new_search_hash[decodeURIComponent(name)];
}
return hash_to_search(new_search_hash);
}
Expand Down

0 comments on commit 884ff2b

Please sign in to comment.