mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Now the children are shown again
This commit is contained in:
parent
cd560178c0
commit
96f6659b34
@ -70,7 +70,7 @@ class Tree {
|
||||
// First filter by name and father
|
||||
$groups = db_get_all_rows_filter('tgrupo',
|
||||
$filter,
|
||||
array('id_grupo', 'nombre'));html_debug_print($groups, true);
|
||||
array('id_grupo', 'nombre'));
|
||||
if (empty($groups))
|
||||
$groups = array();
|
||||
|
||||
|
@ -151,7 +151,7 @@ TreeController = {
|
||||
.removeClass("leaf-closed")
|
||||
.removeClass("leaf-error")
|
||||
.addClass("leaf-loading");
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: controller.ajaxURL,
|
||||
type: 'POST',
|
||||
@ -170,9 +170,9 @@ TreeController = {
|
||||
success: function(data, textStatus, xhr) {
|
||||
if (data.success) {
|
||||
|
||||
if (typeof element.tree != 'undefined' && element.tree.length > 0) {
|
||||
if (typeof data.tree != 'undefined' && data.tree.length > 0) {
|
||||
$node.addClass("leaf-open");
|
||||
|
||||
|
||||
var $children = _processGroup($node, data.tree);
|
||||
$children.slideDown();
|
||||
|
||||
@ -267,7 +267,6 @@ TreeController = {
|
||||
this.filter = data.filter;
|
||||
}
|
||||
|
||||
this.index = TreeController.controllers.push(this) - 1;
|
||||
this.load();
|
||||
},
|
||||
remove: function () {
|
||||
@ -280,6 +279,8 @@ TreeController = {
|
||||
}
|
||||
}
|
||||
}
|
||||
controller.index = TreeController.controllers.push(controller) - 1;
|
||||
|
||||
return controller;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user