зеркало из https://github.com/mozilla/pjs.git
Reverting part of previous change which caused columnpicker funkiness. rs=sspitzer
This commit is contained in:
Родитель
451156c28f
Коммит
f45187c8b4
|
@ -443,7 +443,7 @@
|
||||||
try {
|
try {
|
||||||
if (row.value >= b.view.rowCount) return;
|
if (row.value >= b.view.rowCount) return;
|
||||||
} catch (e) { return; }
|
} catch (e) { return; }
|
||||||
|
|
||||||
if (obj.value != "twisty") {
|
if (obj.value != "twisty") {
|
||||||
var column = document.getElementById(col.value);
|
var column = document.getElementById(col.value);
|
||||||
var cycler = column.getAttribute('cycler') == 'true';
|
var cycler = column.getAttribute('cycler') == 'true';
|
||||||
|
@ -595,7 +595,7 @@
|
||||||
popupChild.setAttribute("colid", currCol.id);
|
popupChild.setAttribute("colid", currCol.id);
|
||||||
popupChild.setAttribute("oncommand",
|
popupChild.setAttribute("oncommand",
|
||||||
"this.parentNode.parentNode.parentNode.toggleColumnState(this);");
|
"this.parentNode.parentNode.parentNode.toggleColumnState(this);");
|
||||||
if (currCol.getAttribute("collapsed") != "true")
|
if (currCol.getAttribute("hidden") != "true")
|
||||||
popupChild.setAttribute("checked", "true");
|
popupChild.setAttribute("checked", "true");
|
||||||
if (currCol.getAttribute("primary") == "true")
|
if (currCol.getAttribute("primary") == "true")
|
||||||
popupChild.setAttribute("disabled", "true");
|
popupChild.setAttribute("disabled", "true");
|
||||||
|
@ -619,12 +619,9 @@
|
||||||
if (colNode) {
|
if (colNode) {
|
||||||
var checkedState = aPopup.getAttribute("checked");
|
var checkedState = aPopup.getAttribute("checked");
|
||||||
if (checkedState == "true")
|
if (checkedState == "true")
|
||||||
colNode.removeAttribute("collapsed");
|
colNode.removeAttribute("hidden");
|
||||||
else
|
else
|
||||||
colNode.setAttribute("collapsed", "true");
|
colNode.setAttribute("hidden", "true");
|
||||||
|
|
||||||
// now that columns have changed, we need to invalidate
|
|
||||||
colNode.parentNode.outlinerBoxObject.invalidate();
|
|
||||||
}
|
}
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче