summaryrefslogtreecommitdiff
path: root/lang.js
diff options
context:
space:
mode:
authorJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 22:04:07 +0100
committerJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 22:04:07 +0100
commitdaa007281d7e0099199e3449a67473d92eaf7a3d (patch)
tree2341949c488b56cc97072dfa5b8dc322dbeb5645 /lang.js
parent29543432248595360421da02be5f40c2f3aa34ad (diff)
downloadwww-daa007281d7e0099199e3449a67473d92eaf7a3d.tar.gz
www-daa007281d7e0099199e3449a67473d92eaf7a3d.tar.bz2
www-daa007281d7e0099199e3449a67473d92eaf7a3d.zip
Make buttons change state again
Diffstat (limited to 'lang.js')
-rw-r--r--lang.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang.js b/lang.js
index e0d287a2..a472fd07 100644
--- a/lang.js
+++ b/lang.js
@@ -45,5 +45,7 @@ function loadLang()
function activate_menu()
{
- document.getElementById("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0]).setAttribute('class', 'active');
+ b = document.getElementsByClass("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0])
+ for (i = 0; i < b.length(); i++)
+ b.setAttribute('class', 'active');
}