Skip to content

Commit

Permalink
feat: place cursor in input box
Browse files Browse the repository at this point in the history
In the Administration Options sidebar, when the 'Search' option is clicked, automatically focus on the search bar and place the cursor at its start
  • Loading branch information
Chloe070196 committed Aug 29, 2024
1 parent 6d9be75 commit 948dcd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/web/interface/themes/responsive/js/aspen.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions code/web/interface/themes/responsive/js/aspen/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1989,6 +1989,7 @@ AspenDiscovery.Admin = (function () {
showSearch: function () {
$('#adminSearchBox').css('display', 'block');
$('#showSearchButton').css('display', 'none');
document.getElementById('searchAdminBar').focus();
},

showFindCommunityContentForm: function (toolModule, toolName, objectType) {
Expand Down

0 comments on commit 948dcd7

Please sign in to comment.