Skip to content

Commit

Permalink
JS handler for number of results drop down
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Sep 30, 2024
1 parent 9fddc7d commit 806d1aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@
.select();
});

// Auto reload search on number of results change
$("#edit-items-per-page", document).on("change", () => {
$("[id^=edit-submit-k-centres-search]").trigger("click");
});


// Auto expand secondary menu active item
const activeDropdownTgg = $(
".sidebar_second .navbar .menu-item--expanded .dropdown-toggle.is-active",
Expand Down

0 comments on commit 806d1aa

Please sign in to comment.