diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-23 11:16:22 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-23 11:17:13 +0200 |
commit | 3b279c9056087cada0d9bcc4eb75a15a807b426f (patch) | |
tree | fc09fa607903b65c3ab430334a7469c8f0d77cd0 /apps | |
parent | 11aa2cf74b813800cae5fdee426ed83196a34139 (diff) | |
download | nextcloud-server-3b279c9056087cada0d9bcc4eb75a15a807b426f.tar.gz nextcloud-server-3b279c9056087cada0d9bcc4eb75a15a807b426f.zip |
prevent default action when clicking on the share notification
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/share.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index ec46bbe44f1..e9889babaaa 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -40,8 +40,13 @@ $(document).ready(function() { $(allShared).find('.fileactions').append(function() { var owner = $(this).closest('tr').attr('data-share-owner'); var shareBy = t('files_sharing', 'Shared by {owner}', {owner: owner}); - return shareNotification + '<span> ' + shareBy + '</span></span>'; + var $result = $(shareNotification + '<span> ' + shareBy + '</span></span>'); + $result.on('click', function() { + return false; + }); + return $result; }); + } else { allShared = $fileList.find('[data-share-owner] [data-Action="Share"]'); allShared.addClass('permanent'); |