Skip to content

Commit

Permalink
NBNP-415 Return boolean false value using proper case
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcd75 committed Jul 28, 2023
1 parent 0a5505d commit 5054a84
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
}

// Autofocus the search input of clicked tab.
$('.nav-tabs a[data-toggle="tab"]').on('shown.bs.tab', function () {
$('.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab", function () {
$('#newspapers-core-homepage input[type="text"]:visible').focus();
});

// Simuate click function when user presses enter key.
$('input[type="text"]').on('keypress', function (e) {
// Simulate click function when user presses enter key.
$('input[type="text"]').on("keypress", function (e) {
if (e.keyCode == 13) {
$('#newspapers-core-homepage input[type=submit]:visible').focus();
$('#newspapers-core-homepage input[type=submit]:visible').click();
return FALSE;
return false;
}
});
},
Expand Down

0 comments on commit 5054a84

Please sign in to comment.