Bug 42012: Fix missing preventDefault() call in clubs.tt

e.preventDefault was missing parentheses, so the default
action was not prevented. The element is an <a href="#">
link, so clicking it causes the page to scroll to top

To test:

- On Staff side, go to Tools > Patron Clubs
- Create a Club Template, only name is needed
- Create a Club, only name is needed
- Go to a Patron's Check out page > Clubs > **Enroll** in the club
- Back on Tools > Clubs use the Actions menu to "Search to hold"
- The page scrolls to the top before redirecting
- Apply patch
- Repeat "Search to hold"
- Page does not scroll anymore but still redirects

Signed-Off-By: Eric Phetteplace <ephetteplace@cca.edu>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
This commit is contained in:
Paul Derscheid 2026-03-06 13:03:56 +01:00 committed by Martin Renvoize
parent f8c838c0de
commit 97b5c43a1a
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@
});
$("body").on("click", ".club_hold_search", function (e) {
e.preventDefault;
e.preventDefault();
var club_id = $(this).data("id");
SearchToHold(club_id);
});