From 3b279c9056087cada0d9bcc4eb75a15a807b426f Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 23 May 2014 11:16:22 +0200 Subject: [PATCH] prevent default action when clicking on the share notification --- apps/files_sharing/js/share.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'); -- 2.39.5