revert ioguix commit of new dbug code for the tree, which outright broke the tree...
authorxzilla <xzilla>
Thu, 14 Feb 2008 20:00:14 +0000 (20:00 +0000)
committerxzilla <xzilla>
Thu, 14 Feb 2008 20:00:14 +0000 (20:00 +0000)
xloadtree/xtree2.js

index af9104a611384705b15f5f1fd1f4641c573dde1f..cc45ba9e34b20a2c6b392cb2c2c298f4f6934c86 100644 (file)
@@ -770,27 +770,27 @@ _p.toHtml = function () {
                (hideLines ? "-nolines" : "") + "\" style=\"" +
                this.getLineStyle() +
                (this.getExpanded() && this.hasChildren() ? "" : "display:none;") +
-               "\">\n" +
+               "\">" +
                sb.join("") +
-               "</div>\n";
+               "</div>";
 
        return "<div class=\"webfx-tree-item\" id=\"" +
-               this.id + "\"" + this.getEventHandlersHtml() + ">\n" +
+               this.id + "\"" + this.getEventHandlersHtml() + ">" +
                this.getRowHtml() +
                childrenHtml +
-               "</div>\n";
+               "</div>";
 };
 
 _p.getRowHtml = function () {
        var t = this.getTree();
        return "<div class=\"" + this.getRowClassName() + "\" style=\"padding-left:" +
-               Math.max(0, (this.getDepth() - 1) * this.indentWidth) + "px\">\n" +
+               Math.max(0, (this.getDepth() - 1) * this.indentWidth) + "px\">" +
                this.getExpandIconHtml() +
                //"<span class=\"webfx-tree-icon-and-label\">" +
                this.getIconHtml() +
                this.getLabelHtml() +
                //"</span>" +
-               "</div>\n";
+               "</div>";
 };
 
 _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</a>\n";
+               " onblur=\"webFXTreeHandler.handleEvent(event)\">" +
+               this.getHtml() + "</a>";
 };
 
 _p._getHref = function () {
@@ -838,10 +838,10 @@ _p.getIconHtml = function () {
        // HTML...
        var link = this._getIconHref();
        if (link == '#')
-               return "<img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\">\n&nbsp;";
+               return "<img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\">&nbsp;";
 
        return "<a href=\"" + webFXTreeHandler.textToHtml(link) +
-               "\"><img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\"></a>\n";
+               "\"><img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\"></a>";
 };
 
 _p.getIconSrc = function () {
@@ -852,7 +852,7 @@ _p.getExpandIconHtml = function () {
        // here we are not using textToHtml since the file names rarerly contains
        // HTML...
        return "<img class=\"webfx-tree-expand-icon\" src=\"" +
-               this.getExpandIconSrc() + "\">\n";
+               this.getExpandIconSrc() + "\">";
 };