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');