File tree 2 files changed +17
-4
lines changed
interface/themes/responsive/MyAccount
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 25
25
<script type =" text/javascript" >
26
26
$ (' #cardNumber' ).focus ().select ();
27
27
{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
+ } );
32
43
} );
33
44
{ /literal }
34
45
Original file line number Diff line number Diff line change 58
58
// chloe
59
59
60
60
// lucas
61
+ ### Other Updates
62
+ - Allow staff members to submit a masquerade login as a user using the Enter key (DIS-411) (* LM* )
61
63
62
64
63
65
## This release includes code contributions from
You can’t perform that action at this time.
0 commit comments