From 7bd4eb7c5b38fffc313464f408e84b01bb328ab9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 5 Dec 2016 11:26:53 +0100 Subject: [PATCH] Send the share link by mail on pressing enter instead of reloading the page Signed-off-by: Joas Schilling --- core/js/sharedialogmailview.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/js/sharedialogmailview.js b/core/js/sharedialogmailview.js index df919f1feb9..17a2d31341f 100644 --- a/core/js/sharedialogmailview.js +++ b/core/js/sharedialogmailview.js @@ -48,7 +48,8 @@ showLink: true, events: { - 'click #emailButton': '_onEmailPrivateLink' + 'click #emailButton': '_onEmailPrivateLink', + 'submit #emailPrivateLink': '_onEmailPrivateLink' }, initialize: function(options) { -- 2.39.5