diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-11-04 20:44:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-11-04 20:44:15 +0000 |
commit | 53c5ddea1a2c4c1ec8918225134be2b75e269881 (patch) | |
tree | 5d38e03b5cf288b41a396c2e193392eba03ec56c | |
parent | Single showPopup function (diff) | |
download | gentoobrowse-53c5ddea1a2c4c1ec8918225134be2b75e269881.tar.bz2 gentoobrowse-53c5ddea1a2c4c1ec8918225134be2b75e269881.tar.xz gentoobrowse-53c5ddea1a2c4c1ec8918225134be2b75e269881.zip |
Set first input focus on popup
-rw-r--r-- | gentoobrowse/js/js.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gentoobrowse/js/js.js b/gentoobrowse/js/js.js index 41a7631..a615613 100644 --- a/gentoobrowse/js/js.js +++ b/gentoobrowse/js/js.js @@ -8,6 +8,9 @@ bottom: 240 } }); + $('form').on('shown', function(e) { + $(this).find('input:first').focus(); + }); }) }(window.jQuery); |