summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-23 11:50:30 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-23 11:51:31 +0100
commita2181ee6250209c3444f727f48bb3356e4db4e4d (patch)
treeb3ee7af9569d86fef49c6e62aea2ae69f094e331
parent68fb9e63f06d43e4c07d4a57fd153de2ce8474b0 (diff)
Submit Addressbook advanced search form with Enter key (#1488568)
-rw-r--r--CHANGELOG1
-rw-r--r--program/js/app.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 7ec677019..108765ade 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Submit Addressbook advanced search form with Enter key (#1488568)
- Improved database schema upgrade procedure, added updatedb.sh script
- Force autocommit mode in mysql database driver (#1488902)
diff --git a/program/js/app.js b/program/js/app.js
index 474ece77f..7b3514561 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4426,6 +4426,11 @@ function rcube_webmail()
}
$("input[type='text']:visible").first().focus();
+
+ // Submit search form on Enter
+ if (this.env.action == 'search')
+ $(this.gui_objects.editform).append($('<input type="submit">').hide())
+ .submit(function() { $('input.mainaction').click(); return false; });
};
this.group_create = function()