diff --git a/js/custom.js b/js/custom.js index 3dbb740..1a80e90 100644 --- a/js/custom.js +++ b/js/custom.js @@ -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",