From 99d41bec5d04fbdf5d457584cd4d22fef65ece25 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Wed, 27 Aug 2014 10:28:31 +0100 Subject: Show original path information in trashbin and sharing views Path will only be shown if in subdirectory, not in root. --- apps/files_sharing/js/sharedfilelist.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/files_sharing') diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index d29285dc1de..b99611f9bf0 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -181,6 +181,9 @@ file.name = OC.basename(share.file_target); file.path = OC.dirname(share.file_target); file.permissions = share.permissions; + if (file.path) { + file.extraData = share.file_target; + } } else { if (share.share_type !== OC.Share.SHARE_TYPE_LINK) { @@ -189,6 +192,9 @@ file.name = OC.basename(share.path); file.path = OC.dirname(share.path); file.permissions = OC.PERMISSION_ALL; + if (file.path) { + file.extraData = share.path; + } } return file; }) -- cgit v1.2.3