relanding my fix for #74672 and #75603. this was sr=hyatt when it first landed.

but got lost when outlinerBindings.xml became bindings/outliner.xml.
this fixes regressions #94054 and #92815


git-svn-id: svn://10.0.0.236/trunk@100468 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com 2001-08-07 04:12:34 +00:00
parent 1dac62a2d0
commit 643ae5b60e

View File

@ -553,20 +553,26 @@
<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 = 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 show
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 == "") {