* Code for task#78661.
This commit is contained in:
@@ -536,6 +536,14 @@ class tree extends control
|
||||
{
|
||||
$optionMenu = $this->tree->getOptionMenu($rootID, $viewType, $rootModuleID, $branch);
|
||||
}
|
||||
|
||||
if(strpos($extra, 'excludeModuleID') !== false)
|
||||
{
|
||||
parse_str($extra, $output);
|
||||
$excludeModuleID = $output['excludeModuleID'];
|
||||
if(isset($optionMenu[$excludeModuleID])) unset($optionMenu[$excludeModuleID]);
|
||||
}
|
||||
|
||||
if($returnType == 'html')
|
||||
{
|
||||
//Code for task #5081.
|
||||
|
||||
@@ -189,7 +189,7 @@ function loadModules(branch)
|
||||
if(typeof(branchID) == 'undefined') branchID = 0;
|
||||
if(typeof(moduleID) == 'undefined') moduleID = 0;
|
||||
|
||||
link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=story&branch=' + branchID + '&rootModuleID=0&returnType=html&fieldID=&needManage=true&extra=¤tModuleID=' + moduleID);
|
||||
link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=story&branch=' + branchID + '&rootModuleID=0&returnType=html&fieldID=&needManage=true&extra=excludeModuleID=' + <?php echo $module->id;?> + '¤tModuleID=' + moduleID);
|
||||
$(moduleBox).load(link, function()
|
||||
{
|
||||
$(this).children('select').attr('id', 'parent').attr('name', 'parent');
|
||||
|
||||
Reference in New Issue
Block a user