From a2181ee6250209c3444f727f48bb3356e4db4e4d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 23 Jan 2013 11:50:30 +0100 Subject: Submit Addressbook advanced search form with Enter key (#1488568) --- program/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'program') 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($('').hide()) + .submit(function() { $('input.mainaction').click(); return false; }); }; this.group_create = function() -- cgit v1.2.3