From 9430ed82582a4d118bc2cbbf98f0f43baf26d7ed Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 12 Oct 2006 08:15:50 +0000 Subject: [PATCH] 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. --- skins/common/wikibits.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.20.1