summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-25 01:24:20 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-25 01:24:20 -0400
commit99b59f2d62a8e431d84a469ab31a8da101333b26 (patch)
tree45c615b10b350072ea1bdfea54c9f4eca3aa8b72 /IkiWiki/Plugin
parentf8180391408d171b4ddba463e168baa21a5f6228 (diff)
toggle: Fix incompatability between javascript and webkit.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/toggle.pm4
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) ) {