Skip to content

Commit

Permalink
Intercept pagination link click when search field is empty and filtering
Browse files Browse the repository at this point in the history
checkboxes are set
  • Loading branch information
jekkos committed Mar 11, 2015
1 parent a39e12e commit c10860a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/manage_tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function attach_search_listener()
{
// prevent redirecting to link when search enabled
$("#pagination a").click(function(event) {
if ($("#search").val()) {
if ($("#search").val() || $("#search_form input:checked")) {
event.preventDefault();
// set limit_from to value included in the link
var uri_segments = event.currentTarget.href.split('/');
Expand Down

0 comments on commit c10860a

Please sign in to comment.