summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-01 11:53:29 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-01 11:53:29 -0400
commitbf93dd4661445560a62281284132e23cd48e9839 (patch)
tree53a40ea2d5b8c71cccfe38acf6cf09922fef52b0
parentffadbfcef31da78f824161652c9c18aeb57f502d (diff)
downloadnextcloud-server-bf93dd4661445560a62281284132e23cd48e9839.tar.gz
nextcloud-server-bf93dd4661445560a62281284132e23cd48e9839.zip
Don't reload the page after sending private link to email address
-rw-r--r--apps/files_sharing/js/share.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 96c9017dbf9..afe31a75d0b 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -360,7 +360,8 @@ $(document).ready(function() {
$(this).select();
});
- $('#emailPrivateLink').live('submit', function() {
+ $('#emailPrivateLink').live('submit', function(event) {
+ event.preventDefault();
OC.Share.emailPrivateLink();
});
}); \ No newline at end of file