Permalink
Browse files

Fix setTreeNode if node has "expanded:true", but no "loaded" property…

…. Thanks to Oleg
  • Loading branch information...
1 parent 995a0c8 commit e125977725fecb539e45bafa9dce839d17f60707 @tonytomov committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/grid.treegrid.js
View
@@ -65,7 +65,7 @@ $.jgrid.extend({
ldat[isLeaf] = false;
lf="";
}
- ldat[expanded] = ((ldat[expanded] == "true" || ldat[expanded] === true) ? true : false) && ldat[loaded];
+ ldat[expanded] = ((ldat[expanded] == "true" || ldat[expanded] === true) ? true : false) && (ldat[loaded] || ldat[loaded] === undefined);
if(ldat[expanded] === false) {
twrap += ((ldat[isLeaf] === true) ? "'" : $t.p.treeIcons.plus+" tree-plus treeclick'");
} else {

0 comments on commit e125977

Please sign in to comment.