From 55a2e5eca183de3c7b32236e6ef54a0c59960cea Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 23 Jan 2013 05:50:30 -0500 Subject: [PATCH] Submit Addressbook advanced search form with Enter key (#1488568) --- program/js/app.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 6d48222..ce17245 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4431,6 +4431,11 @@ } $("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() -- Gitblit v1.9.1