#75603 rebuild picker every time

#74672 use "ignoreincolumnpicker" allow columns to not show up in picker.

needed for mailnews, since since the thread pane is used by the search dialog.

sr=hyatt
This commit is contained in:
sspitzer%netscape.com 2001-04-14 02:09:36 +00:00
parent 9deb4986e3
commit 443901857c

View File

@ -520,21 +520,25 @@
<parameter name="aPopup"/>
<body>
<![CDATA[
var popupChild = aPopup.firstChild;
var firstTime = !popupChild ? true : false;
var currCol = this.parentNode.parentNode.firstChild;
var count = 0;
// we no longer cache the picker content.
// remove the old content
while (aPopup.childNodes.length) {
aPopup.removeChild(aPopup.childNodes[0]);
}
while (currCol) {
while (currCol && (currCol.localName != "outlinercol" ||
currCol.getAttribute("primary") == "true"))
currCol = currCol.nextSibling;
if (currCol && (currCol != this)) {
// Construct an entry for each cell in the row.
if (firstTime) {
// Construct an entry for each cell in the row, unless it is not being shown
if (currCol.getAttribute("ignoreincolumnpicker") != "true") {
var columnName = currCol.getAttribute("label");
popupChild = document.createElement("menuitem");
var popupChild = document.createElement("menuitem");
popupChild.setAttribute("type", "checkbox");
popupChild.setAttribute("label", columnName);
if (columnName == "") {