summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
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 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()