From 23c8d7b3fb316daa7c70552ed47e63e9bbcd300f Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Mon, 8 Aug 2011 15:49:16 -0400 Subject: Show which parent folder is shared with the user in the sharing drop down --- apps/files_sharing/js/share.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/files_sharing/js') diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 0b97010c4f1..d6cf45bf44f 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -128,10 +128,7 @@ function createShareDropdown(filenames, files) { $.each(users, function(index, row) { if (typeof(index) == 'string') { // TODO typeof not always working, group together users that have parent folders shared with them - list += "
  • disabled"; - list += index; - list += row.uid_shared_with; - list += "
  • "; + list += "
  • Parent folder "+index.substr(0, index.lastIndexOf('-'))+" shared with "+row.uid_shared_with+"
  • "; } else { list += "
  • "; list += row.uid_shared_with; -- cgit v1.2.3