Lot of improvements on all the trees of the tree view
This commit is contained in:
parent
059afa931c
commit
bb358dd4dd
File diff suppressed because it is too large
Load Diff
|
@ -417,14 +417,6 @@ TreeController = {
|
|||
// Load the status counters
|
||||
var hasCounters = _processNodeCounters($content, element.counters, element.type);
|
||||
|
||||
// if ((element.type == "group" || element.type == "tag")
|
||||
// && (controller.shouldHaveCounters && !hasCounters))
|
||||
// return;
|
||||
if ((element.type == "group" || element.type == "tag")
|
||||
&& (element.agentsNum <= 0))
|
||||
return;
|
||||
|
||||
|
||||
// If exist the detail container, show the data
|
||||
if (typeof controller.detailRecipient != 'undefined' && controller.detailRecipient.length > 0) {
|
||||
$content.click(function (e) {
|
||||
|
@ -486,7 +478,7 @@ TreeController = {
|
|||
$leafIcon.click(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (!$node.hasClass("children-loaded") && !$node.hasClass("leaf-empty")) {
|
||||
if (!$node.hasClass("leaf-loading") && !$node.hasClass("children-loaded") && !$node.hasClass("leaf-empty")) {
|
||||
$node
|
||||
.removeClass("leaf-closed")
|
||||
.removeClass("leaf-error")
|
||||
|
|
Loading…
Reference in New Issue