commit f8152a7324ab75c8f48f32c7b1674de916338db1 parent d4fca42c6a6a0b79372f301ec7e2fbf68177113b Author: Julian Kirsch <kirschju@sec.in.tum.de> Date: Tue, 18 Nov 2014 22:18:03 +0100 fix Diffstat:
| M | lang.js | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lang.js b/lang.js @@ -46,6 +46,8 @@ function loadLang() function activate_menu() { b = document.getElementsByClassName("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0]) - for (i = 0; i < b.length; i++) - b[i].setAttribute('class', 'active'); + for (i = 0; i < b.length; i++) { + s = b[i].getAttribute('class'); + b[i].setAttribute('class', s + ' active'); + } }