Error fixes

This commit is contained in:
Alejandro Gallardo Escobar 2015-01-19 17:09:31 +01:00
parent 5db211f71d
commit 3299b6fa21
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ TreeController = {
},
success: function(data, textStatus, xhr) {
if (data.success) {
var $group = $node.find("ul.tree-group");
var $group = $node.children("ul.tree-group");
if ((typeof data.tree != 'undefined' && data.tree.length > 0) || $group.length > 0) {
$node.addClass("leaf-open");