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

Commit 6d469bc

Browse files
committed
BUG: Refs #0484. Disable community root folder(s) in browser/select tree table.
1 parent a7d170b commit 6d469bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/public/js/browse/browse.selectfolder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function selectFolderCallbackSelect(node)
5757
}
5858

5959
$('div.MainDialogContent #createFolderContent').hide();
60-
if(node.attr('element') == -1)
60+
if(node.attr('element') == -1 || node.attr('element') == -2)
6161
{
6262
$('div.MainDialogContent #selectElements').attr('disabled', 'disabled');
6363
$('div.MainDialogContent #createFolderButton').hide();

core/views/browse/selectfolder.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo '<script type="text/javascript" src="' . $this->coreWebroot . '/public/js/b
3737
foreach($this->communities as $community)
3838
{
3939
$folder = $community->getFolder();
40-
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()}'>";
40+
echo "<tr id='node--$node' class='parent' privacy='".($community->getPrivacy() == 1 ? MIDAS_PRIVACY_PRIVATE : MIDAS_PRIVACY_PUBLIC )."' type='community' element='-2' ajax='{$folder->getFolderId()}'>";
4141
echo " <td class='treeBrowseElement'><span class='community'>{$community->getName()}</span></td>";
4242
echo "</tr>";
4343
$node++;

0 commit comments

Comments
 (0)