mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Error fixes
This commit is contained in:
parent
9fa010c8ac
commit
09bf3a6e34
@ -806,7 +806,7 @@ class Tree {
|
|||||||
$mergedItems[] = $resultItem;
|
$mergedItems[] = $resultItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
usort($mergedItems, "cmpSortNames");
|
//usort($mergedItems, "cmpSortNames");
|
||||||
|
|
||||||
return $mergedItems;
|
return $mergedItems;
|
||||||
}
|
}
|
||||||
|
@ -492,10 +492,10 @@ TreeController = {
|
|||||||
},
|
},
|
||||||
success: function(data, textStatus, xhr) {
|
success: function(data, textStatus, xhr) {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
if (typeof data.tree != 'undefined' && data.tree.length > 0) {
|
var $group = $node.find("ul.tree-group");
|
||||||
$node.addClass("leaf-open");
|
|
||||||
|
|
||||||
var $group = $node.find("ul.tree-group");
|
if ((typeof data.tree != 'undefined' && data.tree.length > 0) || $group.length > 0) {
|
||||||
|
$node.addClass("leaf-open");
|
||||||
|
|
||||||
if ($group.length <= 0) {
|
if ($group.length <= 0) {
|
||||||
$group = $("<ul></ul>");
|
$group = $("<ul></ul>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user