summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-09-03 16:47:54 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-03 16:47:54 +0200
commitbb44bfedc35f0edaac95c9e9db8a7fae9483a1c4 (patch)
treea6e632abb9748b8b0f0e3c357cb6a3349dad4391
parent8f8069022a1869c45a009cbe1ffe10a0ad48965d (diff)
enter now also commits when adding a feed on the firstrun page
-rw-r--r--js/main.js6
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');
+ }
+ });
+
});