summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index b2c1bd5de10..9539e92e09b 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -50,12 +50,18 @@ OC.Share = _.extend(OC.Share || {}, {
* @param callback function to call after the shares were loaded
*/
loadIcons:function(itemType, fileList, callback) {
+ var path = fileList.dirInfo.path;
+ if (path === '/') {
+ path = '';
+ }
+ path += '/' + fileList.dirInfo.name;
+
// Load all share icons
$.get(
OC.linkToOCS('apps/files_sharing/api/v1', 2) + 'shares',
{
subfiles: 'true',
- path: fileList.dirInfo.path,
+ path: path,
format: 'json'
}, function(result) {
if (result && result.ocs.meta.statuscode === 200) {