Skip to content

Commit

Permalink
Add focus on people autocomplete on collapse open
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 3, 2024
1 parent 8bd174c commit b0042c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion View/Elements/ActAsPeopleAutocomplete.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : '';
},
members: "<?= _txt('pl.grouperlite.action.members') ?>",
email: "<?= _txt('pl.grouperlite.value.email') ?>",
enableActAs: "<?= _txt('pl.grouperlite.action.enable-act-as') ?>",
enableActAs: "<?= _txt('pl.grouperlite.action.enable') ?>",
close: "<?= _txt('pl.grouperlite.action.close') ?>",
remove: "<?= _txt('pl.grouperlite.action.remove-user') ?>",
addUser: "<?= _txt('pl.grouperlite.action.add-user') ?>",
Expand Down
8 changes: 8 additions & 0 deletions View/Elements/ActionSideBar.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<script type="text/javascript">
$(document).ready(function() {
$('#people-picker-container').on('shown.bs.collapse', function () {
$(this).find('input').focus();
})
})
</script>

<div id="right-sidebar">
<div class="sidebar-content">
<div class="font-weight-bold d-inline-flex align-items-center w-100">
Expand Down

0 comments on commit b0042c7

Please sign in to comment.