diff options
Diffstat (limited to 'js/main.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 467316c03..06b7cab99 100644 --- a/js/main.js +++ b/js/main.js @@ -138,6 +138,12 @@ $(document).ready(function(){ } }); + $('.dialog input[type=text]').keyup(function(e){ + if((e.keyCode || e.which) == 13) { // 'enter' key shortcut + $(this).parent().parent().find('input[type=submit]').trigger('click'); + } + }); + }); |