mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
#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:
parent
9deb4986e3
commit
443901857c
@ -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 == "") {
|
||||
|
Loading…
Reference in New Issue
Block a user