summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-07-29 14:00:57 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-07-29 14:00:57 +0200
commit03f7c5c56161c68ecc52a5e15d6f4d41a13fbef1 (patch)
tree78e0bea55909daf0c9fbd5e5c675b2e8b752dcfe
parent29a3f1e2af698d356bf52fa9ba181c2c1bf5b9a2 (diff)
parentaff948925a896e996304a092cfb01c48c11f6ad7 (diff)
downloadnextcloud-server-03f7c5c56161c68ecc52a5e15d6f4d41a13fbef1.tar.gz
nextcloud-server-03f7c5c56161c68ecc52a5e15d6f4d41a13fbef1.zip
Merge pull request #9983 from owncloud/sharing_add_unshare_to_overview
update attributes for share-with-user view
-rw-r--r--apps/files_sharing/js/sharedfilelist.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index c060691b8b5..7a43185a2d7 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -59,6 +59,9 @@
$tr.attr('data-share-id', _.pluck(fileData.shares, 'id').join(','));
if (this._sharedWithUser) {
$tr.attr('data-share-owner', fileData.shareOwner);
+ $tr.attr('data-mounttype', 'shared-root');
+ var permission = parseInt($tr.attr('data-permissions')) | OC.PERMISSION_DELETE;
+ $tr.attr('data-permissions', permission);
}
return $tr;
},