label.push('>' + this._setNodeIcon(nodeId) + node.label + '</a></span>');
} else {
- label.push('<span class="toggle" onclick="' + this.opts.target + '.toggle(' + nodeId.toJSON().gsub('"', '"') + ')">' + this._setNodeIcon(nodeId) + node.label + '</span>');
+ label.push('<span class="toggle" onclick="' + this.opts.target + '.toggle(' + nodeId.gsub('"', '"') + ')">' + this._setNodeIcon(nodeId) + node.label + '</span>');
}
return label.join('');
if (this.renderStatic) {
return '';
}
- attrib = ' style="cursor:pointer" onclick="' + this.opts.target + '.toggle(' + nodeId.toJSON().gsub('"', '"') + ')"';
+ attrib = ' style="cursor:pointer" onclick="' + this.opts.target + '.toggle(' + nodeId.gsub('"', '"') + ')"';
} else if (node.indent != '0' && Object.isUndefined(node.children)) {
// Node no children.
this.dropline[node.indent] = (this.node_pos[nodeId].pos < this.node_pos[nodeId].count);
} else if (!Object.isUndefined(node.children)) {
this.dropline[node.indent] = (this.node_pos[nodeId].pos < this.node_pos[nodeId].count);
if (!this.renderStatic) {
- attrib = ' style="cursor:pointer" onclick="' + this.opts.target + '.toggle(' + nodeId.toJSON().gsub('"', '"') + ')"';
+ attrib = ' style="cursor:pointer" onclick="' + this.opts.target + '.toggle(' + nodeId.gsub('"', '"') + ')"';
}
} else {
// Top level node with no children.