Skip to content

Commit 8443b58

Browse files
committed
Merge branch '25.03.00' of https://github.com/Aspen-Discovery/aspen-discovery into 25.03.00
2 parents af4034d + 876f419 commit 8443b58

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

code/web/interface/themes/responsive/MyAccount/ajax-masqueradeAs.tpl

+15-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,21 @@
2525
<script type="text/javascript">
2626
$('#cardNumber').focus().select();
2727
{literal}
28-
$("#masqueradeForm").validate({
29-
submitHandler: function () {
30-
AspenDiscovery.Account.initiateMasquerade();
31-
}
28+
$(document).ready(function () {
29+
$("#masqueradeForm").validate({
30+
submitHandler: function (form) {
31+
AspenDiscovery.Account.initiateMasquerade();
32+
}
33+
});
34+
35+
$("#masqueradeForm").on("keydown", function (event) {
36+
if (event.key === "Enter" && !$(event.target).is("textarea")) {
37+
event.preventDefault();
38+
if ($("#masqueradeForm").valid()) {
39+
$("#masqueradeForm").submit();
40+
}
41+
}
42+
});
3243
});
3344
{/literal}
3445

code/web/release_notes/25.03.00.MD

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
// chloe
5959

6060
// lucas
61+
### Other Updates
62+
- Allow staff members to submit a masquerade login as a user using the Enter key (DIS-411) (*LM*)
6163

6264

6365
## This release includes code contributions from

0 commit comments

Comments
 (0)