From: Aryeh Gregor Date: Thu, 12 Oct 2006 08:15:50 +0000 (+0000) Subject: Fix wikibits.js script broken by last commit. That tweaked DOM: editsections are... X-Git-Tag: 1.31.0-rc.0~55523 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=9430ed82582a4d118bc2cbbf98f0f43baf26d7ed;p=lhc%2Fweb%2Fwiklou.git Fix wikibits.js script broken by last commit. That tweaked DOM: editsections are now spans instead of divs and are inside the h# tags, so JavaScript etc. that relies on their being divs will break briefly. However, this is the logical approach, since it will attach the editsection to the header naturally, including auto-centering etc. --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 3a8fd6c69c..34cc0913a1 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -503,9 +503,9 @@ function akeytt() { function setupRightClickEdit() { if (document.getElementsByTagName) { - var divs = document.getElementsByTagName('div'); - for (var i = 0; i < divs.length; i++) { - var el = divs[i]; + var spans = document.getElementsByTagName('span'); + for (var i = 0; i < spans.length; i++) { + var el = spans[i]; if(el.className == 'editsection') { addRightClickEditHandler(el); }