diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-02-08 17:02:05 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-02-08 22:33:39 +0100 |
commit | ae367c7e97b99885c7cb1feadae22aa1bb6cb729 (patch) | |
tree | 23b9b4361c1e0b399f49f67ce108acd313c6f27f /apps/files/js | |
parent | 850ac0cf84f2492b16204b811f58a0dc7dc43b6e (diff) | |
download | nextcloud-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.js | 4 |
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; }, |