Skip to content
Snippets Groups Projects
Commit eb395240 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#419 - focus account name input on modal close

parent 00a25e55
No related branches found
No related tags found
No related merge requests found
......@@ -52,4 +52,15 @@ $(document).ready(function()
this.classList.add('selected');
});
if($('#modalAccountIconSelect').length)
{
let modalAccountIconSelect = document.getElementById('modalAccountIconSelect');
M.Modal.init(modalAccountIconSelect, {
onCloseEnd: function f()
{
document.getElementById('account-name').focus();
}
});
}
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment