From: Bjoern Schiessle Date: Fri, 23 May 2014 09:16:22 +0000 (+0200) Subject: prevent default action when clicking on the share notification X-Git-Tag: v7.0.0alpha2~219^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b279c9056087cada0d9bcc4eb75a15a807b426f;p=nextcloud-server.git prevent default action when clicking on the share notification --- 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 + ' ' + shareBy + ''; + var $result = $(shareNotification + ' ' + shareBy + ''); + $result.on('click', function() { + return false; + }); + return $result; }); + } else { allShared = $fileList.find('[data-share-owner] [data-Action="Share"]'); allShared.addClass('permanent');