Skip to content

Commit 4cbe8a3

Browse files
committed
Handle the data-auto-submit HTML attribute to inhibit page reload
1 parent 1f02195 commit 4cbe8a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Changelog
55
1.6 (unreleased)
66
----------------
77

8-
- Nothing changed yet.
9-
8+
- Filter fields having the HTML attribute "data-auto-submit" set to "no" do not
9+
trigger a page reload when modified.
1010

1111
1.5 (2016-09-23)
1212
----------------

django_genericfilters/templates/genericfilters/filter_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030

3131
<script type="text/javascript">
3232
$(document).ready(function () {
33-
$('#search_form select').change(search_submit);
33+
$('#search_form select:not("[data-auto-submit=\'no\']")').change(search_submit);
3434
});
3535
</script>

0 commit comments

Comments
 (0)