summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 20:44:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 20:44:15 +0000
commit53c5ddea1a2c4c1ec8918225134be2b75e269881 (patch)
tree5d38e03b5cf288b41a396c2e193392eba03ec56c
parentSingle showPopup function (diff)
downloadgentoobrowse-53c5ddea1a2c4c1ec8918225134be2b75e269881.tar.bz2
gentoobrowse-53c5ddea1a2c4c1ec8918225134be2b75e269881.tar.xz
gentoobrowse-53c5ddea1a2c4c1ec8918225134be2b75e269881.zip
Set first input focus on popup
-rw-r--r--gentoobrowse/js/js.js3
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);