%messengerDTD; ]> 3) aPopup.firstChild.remove(); let refChild = aPopup.firstChild; let tree = this.parentNode.parentNode; for (let currCol = tree.columns.getFirstColumn(); currCol; currCol = currCol.getNext()) { // Construct an entry for each column in the row, unless // it is not being shown. let currElement = currCol.element; if (!currElement.hasAttribute("ignoreincolumnpicker")) { let popupChild = document.createElement("menuitem"); popupChild.setAttribute("type", "checkbox"); let columnName = currElement.getAttribute("display") || currElement.getAttribute("label"); popupChild.setAttribute("label", columnName); popupChild.setAttribute("colindex", currCol.index); if (currElement.getAttribute("hidden") != "true") popupChild.setAttribute("checked", "true"); if (currCol.primary) popupChild.setAttribute("disabled", "true"); aPopup.insertBefore(popupChild, refChild); } } ]]>