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