]> 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:53:29 +0000 (11:53 -0400)
apps/files_sharing/js/share.js

index 96c9017dbf9c507bbd92b778408a5eece71bcbd4..afe31a75d0b5d14f7f1ca394e388af6f4eef9ec0 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