fix: no focus on find user modal

This commit is contained in:
Julian Lam
2020-04-14 10:18:20 -04:00
parent bcbf98aa4c
commit 1b425ef108

View File

@@ -140,6 +140,7 @@ define('admin/manage/privileges', [
modal.on('shown.bs.modal', function () {
var inputEl = modal.find('input');
inputEl.focus();
autocomplete.user(inputEl, function (ev, ui) {
var defaultPrivileges = cid ? ['find', 'read', 'topics:read'] : ['chat'];