From 09a527f7ae79252a2ef849c68c21dc6e5708819b Mon Sep 17 00:00:00 2001 From: kevinparkerson Date: Tue, 9 Sep 2014 16:13:37 -0400 Subject: [PATCH] tree-populate-bug-fix: changes populate parent to be the tree container if $el has the class 'tree'. fixes issue #658 --- js/tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tree.js b/js/tree.js index 0e0afdf63..37ff66c0c 100644 --- a/js/tree.js +++ b/js/tree.js @@ -63,7 +63,7 @@ populate: function ($el) { var self = this; - var $parent = $el.parent(); + var $parent = ($el.hasClass('tree')) ? $el : $el.parent(); var loader = $parent.find('.tree-loader:eq(0)'); loader.removeClass('hide');