summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-08 17:02:05 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-08 22:33:39 +0100
commitae367c7e97b99885c7cb1feadae22aa1bb6cb729 (patch)
tree23b9b4361c1e0b399f49f67ce108acd313c6f27f /apps/files/js
parent850ac0cf84f2492b16204b811f58a0dc7dc43b6e (diff)
downloadnextcloud-server-ae367c7e97b99885c7cb1feadae22aa1bb6cb729.tar.gz
nextcloud-server-ae367c7e97b99885c7cb1feadae22aa1bb6cb729.zip
Fix elementToFile to also return path when defined
Fixes issue when opening the share dialog for a file inside the favorite list, and the file is from a subfolder
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 35999b5d0ee..1a6f38d3d7c 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -815,6 +815,10 @@
if (mountType) {
data.mountType = mountType;
}
+ var path = $el.attr('data-path');
+ if (path) {
+ data.path = path;
+ }
return data;
},