From 9dd916a3fc72622374cb37c3ad12903e4137da03 Mon Sep 17 00:00:00 2001 From: xzilla Date: Thu, 14 Feb 2008 20:00:14 +0000 Subject: [PATCH] revert ioguix commit of new dbug code for the tree, which outright broke the tree for me and spq. removing a few of the wayward \n's did allow the tree to open/close, but I still had broken +/- icons in the tree, so I am pushing it all back. --- xloadtree/xtree2.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/xloadtree/xtree2.js b/xloadtree/xtree2.js index af9104a6..cc45ba9e 100644 --- a/xloadtree/xtree2.js +++ b/xloadtree/xtree2.js @@ -770,27 +770,27 @@ _p.toHtml = function () { (hideLines ? "-nolines" : "") + "\" style=\"" + this.getLineStyle() + (this.getExpanded() && this.hasChildren() ? "" : "display:none;") + - "\">\n" + + "\">" + sb.join("") + - "\n"; + ""; return "
\n" + + this.id + "\"" + this.getEventHandlersHtml() + ">" + this.getRowHtml() + childrenHtml + - "
\n"; + ""; }; _p.getRowHtml = function () { var t = this.getTree(); return "
\n" + + Math.max(0, (this.getDepth() - 1) * this.indentWidth) + "px\">" + this.getExpandIconHtml() + //"" + this.getIconHtml() + this.getLabelHtml() + //"" + - "
\n"; + ""; }; _p.getRowClassName = function () { @@ -811,8 +811,8 @@ _p.getLabelHtml = function () { (toolTip ? " title=\"" + webFXTreeHandler.textToHtml(toolTip) + "\"" : "") + (target ? " target=\"" + target + "\"" : "") + " onfocus=\"webFXTreeHandler.handleEvent(event)\"" + - " onblur=\"webFXTreeHandler.handleEvent(event)\">\n" + - this.getHtml() + "\n\n"; + " onblur=\"webFXTreeHandler.handleEvent(event)\">" + + this.getHtml() + ""; }; _p._getHref = function () { @@ -838,10 +838,10 @@ _p.getIconHtml = function () { // HTML... var link = this._getIconHref(); if (link == '#') - return "\n "; + return " "; return "\n"; + "\">"; }; _p.getIconSrc = function () { @@ -852,7 +852,7 @@ _p.getExpandIconHtml = function () { // here we are not using textToHtml since the file names rarerly contains // HTML... return "\n"; + this.getExpandIconSrc() + "\">"; }; -- 2.39.5