summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxzilla2008-02-14 20:00:14 +0000
committerxzilla2008-02-14 20:00:14 +0000
commit9dd916a3fc72622374cb37c3ad12903e4137da03 (patch)
tree0a78a86cec6eebd1fc2a0dbda6a92611368f00da
parent4ff3017e7fb82f3bcdb03a23eda46d6d95dc441a (diff)
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.
-rw-r--r--xloadtree/xtree2.js22
1 files 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("") +
- "</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() + "\">";
};