diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-03 16:47:54 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-03 16:47:54 +0200 |
commit | bb44bfedc35f0edaac95c9e9db8a7fae9483a1c4 (patch) | |
tree | a6e632abb9748b8b0f0e3c357cb6a3349dad4391 /js | |
parent | 8f8069022a1869c45a009cbe1ffe10a0ad48965d (diff) |
enter now also commits when adding a feed on the firstrun page
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js index 06b7cab99..ae1b7eace 100644 --- a/js/main.js +++ b/js/main.js @@ -144,6 +144,12 @@ $(document).ready(function(){ } }); + $('#addfeed_dialog_firstrun input[type=text]').keyup(function(e){ + if((e.keyCode || e.which) == 13) { // 'enter' key shortcut + $(this).siblings('input[type=submit]').trigger('click'); + } + }); + }); |