From 888d7a1f9c7f2020a05579adec6f1b301d2fb4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 18 Oct 2017 17:09:07 +0300 Subject: [PATCH] auto-focus input elements in Account Settings modal dialogs. --- static/js/profile.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/profile.js b/static/js/profile.js index 74d34433..595ffb98 100644 --- a/static/js/profile.js +++ b/static/js/profile.js @@ -10,4 +10,12 @@ $(function() { return false; }); + $('#invite-team-member-modal').on('shown.bs.modal', function () { + $('#itm-email').focus(); + }) + + $('#set-team-name-modal').on('shown.bs.modal', function () { + $('#team-name').focus(); + }) + }); \ No newline at end of file