Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
BUG: Refs #0484. Disable community root folder(s) in browser/select t…
Browse files Browse the repository at this point in the history
…ree table.
  • Loading branch information
yuzhengZ committed Jan 24, 2012
1 parent a7d170b commit 6d469bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/public/js/browse/browse.selectfolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function selectFolderCallbackSelect(node)
}

$('div.MainDialogContent #createFolderContent').hide();
if(node.attr('element') == -1)
if(node.attr('element') == -1 || node.attr('element') == -2)
{
$('div.MainDialogContent #selectElements').attr('disabled', 'disabled');
$('div.MainDialogContent #createFolderButton').hide();
Expand Down
2 changes: 1 addition & 1 deletion core/views/browse/selectfolder.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ echo '<script type="text/javascript" src="' . $this->coreWebroot . '/public/js/b
foreach($this->communities as $community)
{
$folder = $community->getFolder();
echo "<tr id='node--$node' class='parent' privacy='".($community->getPrivacy() == 1 ? MIDAS_PRIVACY_PRIVATE : MIDAS_PRIVACY_PUBLIC )."' type='community' element='{$community->getCommunityId()}' ajax='{$folder->getFolderId()}'>";
echo "<tr id='node--$node' class='parent' privacy='".($community->getPrivacy() == 1 ? MIDAS_PRIVACY_PRIVATE : MIDAS_PRIVACY_PUBLIC )."' type='community' element='-2' ajax='{$folder->getFolderId()}'>";
echo " <td class='treeBrowseElement'><span class='community'>{$community->getName()}</span></td>";
echo "</tr>";
$node++;
Expand Down

0 comments on commit 6d469bc

Please sign in to comment.