summaryrefslogtreecommitdiff
path: root/program/js
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:50:30 +0100
commit55a2e5eca183de3c7b32236e6ef54a0c59960cea (patch)
tree92c58c664be4375875a7d82602ec55f622763cb1 /program/js
parent60753b05faa87b6ee6a7b0f22b85cb664478269f (diff)
Submit Addressbook advanced search form with Enter key (#1488568)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 6d48222e6..ce17245e1 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4431,6 +4431,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()