Lot of improvements on all the trees of the tree view

This commit is contained in:
Alejandro Gallardo Escobar 2015-01-28 18:57:33 +01:00
parent 059afa931c
commit bb358dd4dd
2 changed files with 871 additions and 975 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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")