diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-10 13:38:58 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-10 13:38:58 -0400 |
commit | 80660bdc071632f699ea2051d56f03cc887948e6 (patch) | |
tree | a28771359dfe74967f5083cdcec930c9fb03a5cc /apps/files_sharing/js | |
parent | 88e338ec232f91bf2ede2cf05b6b20cb568271f9 (diff) | |
download | nextcloud-server-80660bdc071632f699ea2051d56f03cc887948e6.tar.gz nextcloud-server-80660bdc071632f699ea2051d56f03cc887948e6.zip |
Fix shared list for files inside of shared folders
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/share.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 3834ebbf832..fed85b35b53 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -161,8 +161,7 @@ function createShareDropdown(filenames, files) { var list; $.each(users, function(index, row) { $('#uid_shared_with option[value="'+row.uid_shared_with+'"]').remove(); - if (typeof(index) == 'string') { - // TODO typeof not always working, group together users that have parent folders shared with them + if (isNaN(index)) { list += "<li>Parent folder "+index.substr(0, index.lastIndexOf('-'))+" shared with "+row.uid_shared_with+"</li>"; } else { list += "<li data-uid_shared_with='"+row.uid_shared_with+"'>"; |