diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-25 01:24:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-25 01:24:20 -0400 |
commit | 99b59f2d62a8e431d84a469ab31a8da101333b26 (patch) | |
tree | 45c615b10b350072ea1bdfea54c9f4eca3aa8b72 /IkiWiki/Plugin | |
parent | f8180391408d171b4ddba463e168baa21a5f6228 (diff) |
toggle: Fix incompatability between javascript and webkit.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/toggle.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/toggle.pm b/IkiWiki/Plugin/toggle.pm index 284eb8249..ef30fe6b6 100644 --- a/IkiWiki/Plugin/toggle.pm +++ b/IkiWiki/Plugin/toggle.pm @@ -39,9 +39,9 @@ function toggle(s) { style.display = "none"; } -function getElementsByClass(class) { +function getElementsByClass(c) { var ret = new Array(); - var pattern = new RegExp("(^|\\s)"+class+"(\\s|$)"); + var pattern = new RegExp("(^|\\s)"+c+"(\\s|$)"); var els = document.getElementsByTagName('*'); for (i = 0, j = 0; i < els.length; i++) { if ( pattern.test(els[i].className) ) { |