projects
/
tricorder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch main header when navigating through modules
[tricorder.git]
/
js
/
tricorder.js
diff --git
a/js/tricorder.js
b/js/tricorder.js
index 2debeec9964f1d1d2c0acd9cab1a0f9895f8b33b..093f5171a79851e73569993fd587ad7b85ff8d81 100644
(file)
--- a/
js/tricorder.js
+++ b/
js/tricorder.js
@@
-74,8
+74,11
@@
function switchModule(modname) {
navs[i].classList.remove("active");
}
navs[i].classList.remove("active");
}
- document.getElementById("nav" + modname).classList.add("active");
+ var navItem = document.getElementById("nav" + modname);
+ navItem.classList.add("active");
document.getElementById("sect" + modname).classList.add("active");
document.getElementById("sect" + modname).classList.add("active");
+ document.getElementById("mainHeader").textContent =
+ (modname == "Other") ? "Web Tricorder" : navItem.textContent;
window["gMod" + modname].activate();
}
window["gMod" + modname].activate();
}