summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-08-27 10:28:31 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-09-11 15:45:42 +0100
commit99d41bec5d04fbdf5d457584cd4d22fef65ece25 (patch)
tree079ee19291f919a90ad7b1ca2595555050d25b7a /apps/files_sharing/js
parent712addac683110c44527cbb9dfe9133821712241 (diff)
downloadnextcloud-server-99d41bec5d04fbdf5d457584cd4d22fef65ece25.tar.gz
nextcloud-server-99d41bec5d04fbdf5d457584cd4d22fef65ece25.zip
Show original path information in trashbin and sharing views
Path will only be shown if in subdirectory, not in root.
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js6
1 files changed, 6 insertions, 0 deletions
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;
})