mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +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
|
// First filter by name and father
|
||||||
$groups = db_get_all_rows_filter('tgrupo',
|
$groups = db_get_all_rows_filter('tgrupo',
|
||||||
$filter,
|
$filter,
|
||||||
array('id_grupo', 'nombre'));html_debug_print($groups, true);
|
array('id_grupo', 'nombre'));
|
||||||
if (empty($groups))
|
if (empty($groups))
|
||||||
$groups = array();
|
$groups = array();
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ TreeController = {
|
|||||||
success: function(data, textStatus, xhr) {
|
success: function(data, textStatus, xhr) {
|
||||||
if (data.success) {
|
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");
|
$node.addClass("leaf-open");
|
||||||
|
|
||||||
var $children = _processGroup($node, data.tree);
|
var $children = _processGroup($node, data.tree);
|
||||||
@ -267,7 +267,6 @@ TreeController = {
|
|||||||
this.filter = data.filter;
|
this.filter = data.filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.index = TreeController.controllers.push(this) - 1;
|
|
||||||
this.load();
|
this.load();
|
||||||
},
|
},
|
||||||
remove: function () {
|
remove: function () {
|
||||||
@ -280,6 +279,8 @@ TreeController = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
controller.index = TreeController.controllers.push(controller) - 1;
|
||||||
|
|
||||||
return controller;
|
return controller;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user