From d75c555c0789197fd12f89fab879d271aee970e9 Mon Sep 17 00:00:00 2001 From: "mozilla%kewis.ch" Date: Fri, 11 Apr 2008 14:54:55 +0000 Subject: [PATCH] Fix bug 410755 - [Trunk] It is not possible to resize and reorder the columns of the task list (regression). r=philipp,p=prasad --- calendar/base/content/calendar-task-tree.xml | 41 ++++++++++---------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/calendar/base/content/calendar-task-tree.xml b/calendar/base/content/calendar-task-tree.xml index a66a53d3b92..00ce47d055a 100644 --- a/calendar/base/content/calendar-task-tree.xml +++ b/calendar/base/content/calendar-task-tree.xml @@ -73,7 +73,7 @@ label="&calendar.unifinder.tree.done.label;"> - + - + - + - + - + - + - + - + - + - + @@ -397,8 +397,8 @@ var treeCols; if (sortActive != "true") { - var treecols = document.getAnonymousNodes( - this.binding)[0].getElementsByTagName("treecol"); + var tree = document.getAnonymousNodes(this.binding)[0]; + var treecols = tree.getElementsByTagNameNS(tree.namespaceURI, "treecol"); for (var i = 0; i < treecols.length; i++) { treecols[i].removeAttribute("sortActive"); treecols[i].removeAttribute("sortDirection"); @@ -573,9 +573,9 @@ // Set the context menu on mousedown to change it before it is opened onMouseDown: function tTV_onMouseDown(event) { - var tree = document.getAnonymousElementByAttribute( - this.binding, "anonid", "calendar-task-tree"); - var treechildren = tree.getElementsByTagName("treechildren")[0]; + var tree = document.getAnonymousElementByAttribute(this.binding, + "anonid", + "calendar-task-tree"); if (!this._getItemFromEvent(event)) { tree.view.selection.clearSelection(); @@ -746,8 +746,8 @@ var widths = this.getAttribute("widths").split(' '); var sortActive = this.getAttribute("sort-active"); var sortDirection = this.getAttribute("sort-direction") || "ascending"; - var treecols = document.getAnonymousNodes( - this)[0].getElementsByTagName("treecol"); + var tree = document.getAnonymousNodes(this)[0]; + var treecols = tree.getElementsByTagNameNS(tree.namespaceURI, "treecol"); for (var i = 0; i < treecols.length; i++) { var anonid = treecols[i].getAttribute("anonid"); if (names.some( @@ -803,8 +803,8 @@ var visible = ""; var sortActive = null; var sortDirection = null; - var treecols = document.getAnonymousNodes( - this)[0].getElementsByTagName("treecol"); + var tree = document.getAnonymousNodes(this)[0]; + var treecols = tree.getElementsByTagNameNS(tree.namespaceURI, "treecol"); for (var i = 0; i < treecols.length; i++) { if (treecols[i].getAttribute("hidden") != "true") { var anonid = treecols[i].getAttribute("anonid"); @@ -973,7 +973,8 @@ this.popRefreshQueue(); this.mTreeView.rowCount = this.mTaskArray.length; - var treecols = document.getAnonymousNodes(this)[0].getElementsByTagName("treecol"); + var tree = document.getAnonymousNodes(this)[0]; + var treecols = tree.getElementsByTagNameNS(tree.namespaceURI, "treecol"); for (var i = 0; i < treecols.length; i++) { if (treecols[i].getAttribute("sortActive") == "true") { this.mTreeView.selectedColumn = treecols[i].getAttribute("anonid");