Bug 1391647 - Fix header title in about:telemetry r?chutten
Clicking on a subsection then clicking on a section now change the
title.
MozReview-Commit-ID: AmdO0DTRstr
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -1892,31 +1892,32 @@ function show(selected) {
}
}
if (subsections) {
for (let subsection of subsections) {
subsection.hidden = false;
}
}
+ adjustHeaderState();
+
let current_button = document.querySelector(".category.selected");
if (current_button == selected)
return;
current_button.classList.remove("selected");
selected.classList.add("selected");
document.querySelectorAll("section").forEach((section) => {
section.classList.remove("active")
});
selected_section.classList.add("active");
// Hack because subsection text appear selected. See Bug 1375114.
document.getSelection().empty();
- adjustHeaderState();
displayProcessesSelector(selectedValue);
adjustSearchState();
changeUrlPath(selectedValue);
}
function showSubSection(selected) {
let current_selection = document.querySelector(".category-subsection.selected");
if (current_selection)