summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
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:54:32 -0400
commiteca2e073f812c89712c74f8626816c29a449232f (patch)
tree4381c00e980e1927ceaf1f708043fcf87879fb06 /apps/files_sharing/js
parent7ceba61413ec3cc63112471e89f346ac1613d928 (diff)
downloadnextcloud-server-eca2e073f812c89712c74f8626816c29a449232f.tar.gz
nextcloud-server-eca2e073f812c89712c74f8626816c29a449232f.zip
Don't reload the page after sending private link to email address
Diffstat (limited to 'apps/files_sharing/js')
-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 9194d2240ab..39e6bd78590 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