From: Joey Hess Date: Tue, 26 Aug 2008 16:43:12 +0000 (-0400) Subject: toggle: Fix incompatability between javascript and webkit. X-Git-Tag: 2.53.1~12 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/fdcdbb87907d8e2bacf9e86c5264b2763adb17cd toggle: Fix incompatability between javascript and webkit. (cherry picked from commit 99b59f2d62a8e431d84a469ab31a8da101333b26) --- 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) ) { diff --git a/debian/changelog b/debian/changelog index aff2ed774..4e69af113 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,7 @@ ikiwiki (2.53.1) UNRELEASED; urgency=low * meta: fix title() PageSpec * Really fix bug with links to pages with names containing colons. Previous fix mised a few cases. + * toggle: Fix incompatability between javascript and webkit. -- Josh Triplett Wed, 09 Jul 2008 21:30:33 -0700