]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't reload the page after sending private link to email address
authorMichael Gapczynski <mtgap@owncloud.com>
Sun, 1 Jul 2012 15:53:29 +0000 (11:53 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Sun, 1 Jul 2012 15:54:32 +0000 (11:54 -0400)
apps/files_sharing/js/share.js

index 9194d2240ab153b198c92d2d8cbb46151847c0e9..39e6bd7859084380a77c1e3fcb202bbd741306d5 100644 (file)
@@ -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