From 3c6c8ecab0cd41b4878dba4275a4187011831bab Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Thu, 10 May 2012 11:07:06 -0400 Subject: [PATCH] Make email private link submit on enter as well --- apps/files_sharing/js/share.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index e23146798f..faa6c52b2a 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -74,9 +74,11 @@ OC.Share={ html += ''; $(html).appendTo(appendTo); if (OC.Share.usersAndGroups.length < 1) { @@ -356,7 +358,8 @@ $(document).ready(function() { $(this).select(); }); - $('#emailButton').live('click', function() { + $('#emailPrivateLink').live('submit', function() { + event.preventDefault(); OC.Share.emailPrivateLink(); }); }); \ No newline at end of file