From: Jan Schneider Date: Wed, 30 Jun 2010 21:58:04 +0000 (+0200) Subject: String.toJSON() no longer exists. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=acb8a1f1a36db0b9873bc98e8e9174737bbc02dc;p=horde.git String.toJSON() no longer exists. --- diff --git a/horde/js/hordetree.js b/horde/js/hordetree.js index 74f182517..9912bd160 100644 --- a/horde/js/hordetree.js +++ b/horde/js/hordetree.js @@ -265,7 +265,7 @@ var Horde_Tree = Class.create({ label.push('>' + this._setNodeIcon(nodeId) + node.label + ''); } else { - label.push('' + this._setNodeIcon(nodeId) + node.label + ''); + label.push('' + this._setNodeIcon(nodeId) + node.label + ''); } return label.join(''); @@ -284,14 +284,14 @@ var Horde_Tree = Class.create({ 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.