mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-7809-no-se-despliegan-subgrupos-vista-arbol' into 'develop'
Fixed issues with subgroups in Tree view Closes pandora_enterprise#7809 See merge request artica/pandorafms!4307
This commit is contained in:
commit
26bcb0d078
@ -962,7 +962,7 @@ var TreeController = {
|
|||||||
}
|
}
|
||||||
// If exist the detail container, show the data
|
// If exist the detail container, show the data
|
||||||
if (
|
if (
|
||||||
typeof controller.detailRecipient !== "undefined" &&
|
typeof controller.detailRecipient !== "undefined" ||
|
||||||
disabled == false
|
disabled == false
|
||||||
) {
|
) {
|
||||||
if (element.type == "agent" || element.type == "module") {
|
if (element.type == "agent" || element.type == "module") {
|
||||||
@ -997,12 +997,10 @@ var TreeController = {
|
|||||||
$node.addClass("leaf-empty");
|
$node.addClass("leaf-empty");
|
||||||
|
|
||||||
if (
|
if (
|
||||||
typeof element.children != "undefined" &&
|
(typeof element.children != "undefined" &&
|
||||||
element.children.length > 0 &&
|
element.children.length > 0) ||
|
||||||
element.disabled == false
|
element.disabled == false
|
||||||
) {
|
) {
|
||||||
$node.removeClass("leaf-empty").addClass("leaf-closed");
|
|
||||||
|
|
||||||
// Add children
|
// Add children
|
||||||
var $children = _processGroup($node, element.children);
|
var $children = _processGroup($node, element.children);
|
||||||
$node.data("children", $children);
|
$node.data("children", $children);
|
||||||
@ -1032,13 +1030,13 @@ var TreeController = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
typeof element.searchChildren != "undefined" &&
|
(typeof element.searchChildren != "undefined" &&
|
||||||
element.searchChildren
|
element.searchChildren) ||
|
||||||
|
element.disabled == true
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
(element.rootType == "group_edition" &&
|
element.rootType == "group_edition" &&
|
||||||
typeof element.children == "undefined") ||
|
typeof element.children == "undefined"
|
||||||
element.disabled == true
|
|
||||||
) {
|
) {
|
||||||
$node.addClass("leaf-empty");
|
$node.addClass("leaf-empty");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user