summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-10-01 16:04:22 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-10-02 12:45:52 +0200
commit40dd2d9dbe4a732669bd85bfb56ba09054d5dd00 (patch)
tree789cc9bafed2d39e115525b4125d9ba367149cfd /apps/files_sharing
parenteeafccb3a65498e83071e71d5954bf4a856a1caa (diff)
downloadnextcloud-server-40dd2d9dbe4a732669bd85bfb56ba09054d5dd00.tar.gz
nextcloud-server-40dd2d9dbe4a732669bd85bfb56ba09054d5dd00.zip
More fileinfo
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index 7912944ac18..84a628345dd 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -191,14 +191,18 @@
// convert share data to file data
.map(function(share) {
var file = {
- shareOwner: share.owner + '@' + share.remote,
- name: share.name
+ shareOwner: share.owner + '@' + share.remote.replace(/.*?:\/\//g, ""),
+ name: OC.basename(share.mountpoint),
+ mtime: share.mtime,
+ mimetype: share.mimetype,
+ type: share.type,
+ id: share.file_id,
+ path: OC.dirname(share.mountpoint)
};
file.shares = [{
id: share.id,
- type: OC.Share.SHARE_TYPE_REMOTE,
- target: share.mountpoint
+ type: OC.Share.SHARE_TYPE_REMOTE
}];
return file;
})