aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-10 13:38:58 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-10 13:38:58 -0400
commit80660bdc071632f699ea2051d56f03cc887948e6 (patch)
treea28771359dfe74967f5083cdcec930c9fb03a5cc /apps/files_sharing/js
parent88e338ec232f91bf2ede2cf05b6b20cb568271f9 (diff)
downloadnextcloud-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.js3
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+"'>";