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:
parent
f8c838c0de
commit
97b5c43a1a
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue