diff --git a/module/tree/view/edit.html.php b/module/tree/view/edit.html.php index 7b014e9ed7..058c091e55 100644 --- a/module/tree/view/edit.html.php +++ b/module/tree/view/edit.html.php @@ -58,7 +58,11 @@ if(isset($pageCSS)) css::internal($pageCSS); type != 'line'):?> > tree->parentCate : $lang->tree->parent;?> - parent, "class='form-control chosen'");?> + +
+ parent, "class='form-control chosen'");?> +
+ > @@ -184,13 +188,12 @@ function loadModules(branch) var productID = $('#root').val(); var branchID = $(branch).val(); var moduleID = $('#parent').val(); - var moduleBox = $('#parent').closest('tr').children('td'); if(typeof(branchID) == 'undefined') branchID = 0; if(typeof(moduleID) == 'undefined') moduleID = 0; - link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=' + type + '&branch=' + branchID + '&rootModuleID=0&returnType=html&fieldID=&needManage=true&extra=excludeModuleID=' + id;?> + ',noMainBranch,nodeleted¤tModuleID=' + moduleID); - $(moduleBox).load(link, function() + link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=' + type + '&branch=' + branchID + '&rootModuleID=0&returnType=html&fieldID=&needManage=false&extra=excludeModuleID=' + id;?> + ',noMainBranch,nodeleted¤tModuleID=' + moduleID); + $('#moduleIdBox').load(link, function() { $(this).children('select').attr('id', 'parent').attr('name', 'parent'); $(this).find('select').chosen()