summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang.js b/lang.js
index 80573e7..197b7c2 100644
--- 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');
+ }
}