Error fixes

This commit is contained in:
Alejandro Gallardo Escobar 2015-01-19 17:07:07 +01:00
parent 9fa010c8ac
commit 09bf3a6e34
2 changed files with 4 additions and 4 deletions
pandora_console/include

View File

@ -806,7 +806,7 @@ class Tree {
$mergedItems[] = $resultItem;
}
usort($mergedItems, "cmpSortNames");
//usort($mergedItems, "cmpSortNames");
return $mergedItems;
}

View File

@ -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>");