Skip to content
Snippets Groups Projects
Commit 80660bdc authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Fix shared list for files inside of shared folders

parent 88e338ec
Branches
No related tags found
No related merge requests found
...@@ -161,8 +161,7 @@ function createShareDropdown(filenames, files) { ...@@ -161,8 +161,7 @@ function createShareDropdown(filenames, files) {
var list; var list;
$.each(users, function(index, row) { $.each(users, function(index, row) {
$('#uid_shared_with option[value="'+row.uid_shared_with+'"]').remove(); $('#uid_shared_with option[value="'+row.uid_shared_with+'"]').remove();
if (typeof(index) == 'string') { if (isNaN(index)) {
// TODO typeof not always working, group together users that have parent folders shared with them
list += "<li>Parent folder "+index.substr(0, index.lastIndexOf('-'))+" shared with "+row.uid_shared_with+"</li>"; list += "<li>Parent folder "+index.substr(0, index.lastIndexOf('-'))+" shared with "+row.uid_shared_with+"</li>";
} else { } else {
list += "<li data-uid_shared_with='"+row.uid_shared_with+"'>"; list += "<li data-uid_shared_with='"+row.uid_shared_with+"'>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment