Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Proper class when entry isLeaf and fixed closing quote and bracket.

Signed-off-by: Amirul Ali <amirul@rixv.net>
  • Loading branch information...
commit 90eaf6c3130e8c3fc964f49d28b3dd8bae8d336b 1 parent 0761d4e
@amirulali amirulali authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/grid.treegrid.js
View
6 js/grid.treegrid.js
@@ -66,12 +66,12 @@ $.jgrid.extend({
}
ldat[expanded] = ((ldat[expanded] == "true" || ldat[expanded] === true) ? true : false) && ldat[loaded];
if(ldat[expanded] === false) {
- twrap += $t.p.treeIcons.plus+" tree-plus treeclick'";
+ twrap += ((ldat[isLeaf] === true) ? "'" : $t.p.treeIcons.plus+" tree-plus treeclick'");
} else {
- twrap += $t.p.treeIcons.minus+" tree-minus treeclick'";
+ twrap += ((ldat[isLeaf] === true) ? "'" : $t.p.treeIcons.minus+" tree-minus treeclick'");
}
- twrap += "</div></div>";
+ twrap += "></div></div>";
$($t.rows[i].cells[expCol]).wrapInner("<span class='cell-wrapper"+lf+"'></span>").prepend(twrap);
if(curLevel !== parseInt($t.p.tree_root_level,10)) {
Please sign in to comment.
Something went wrong with that request. Please try again.