Minor fixes

This commit is contained in:
Jose Gonzalez 2023-02-01 15:31:02 +01:00
parent 2c8c1d4593
commit bd26aa8f8d
1 changed files with 4 additions and 5 deletions

View File

@ -622,7 +622,6 @@ var TreeController = {
data: postData, data: postData,
success: function(data, textStatus, xhr) { success: function(data, textStatus, xhr) {
callback(null, data); callback(null, data);
console.log(data);
$("#fixed-bottom-box-head-title").html( $("#fixed-bottom-box-head-title").html(
$("#fixedBottomHeadTitle").html() $("#fixedBottomHeadTitle").html()
); );
@ -1281,8 +1280,6 @@ var TreeController = {
if (error) { if (error) {
// console.error(error); // console.error(error);
} else { } else {
console.log(element.name);
console.log("1");
controller.detailRecipient controller.detailRecipient
.render(element.name, data) .render(element.name, data)
.open(); .open();
@ -1312,14 +1309,15 @@ var TreeController = {
// Add children // Add children
var $children = _processGroup($node, element.children); var $children = _processGroup($node, element.children);
$node.data("children", $children); $node.data("children", $children);
/*
if ( if (
typeof element.searchChildren == "undefined" || typeof element.searchChildren == "undefined" ||
!element.searchChildren !element.searchChildren
) { ) {
$leafIcon.click(function(e) { $leafIcon.click(function(e) {
console.log(e);
e.preventDefault(); e.preventDefault();
return;
if ($node.hasClass("leaf-open")) { if ($node.hasClass("leaf-open")) {
$node $node
.removeClass("leaf-open") .removeClass("leaf-open")
@ -1335,6 +1333,7 @@ var TreeController = {
} }
}); });
} }
*/
} }
if ( if (