From 6b869b9363f4ae28f25660816099f5be210ea9f4 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 14 Nov 2006 06:10:24 +0000 Subject: [PATCH] Remove commented-out function from wikibits that I accidentally left in the code a while back. --- skins/common/wikibits.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index bf08c90f2e..6a0999ef45 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -554,30 +554,6 @@ function addRightClickEditHandler(el) { } } } -/* -function addRightClickEditHandler(el) { - // find the enclosing (parent) header - var par = el.parentNode; - if (par && par.nodeType == 1 && par.nodeName.match(/^[Hh][1-6]$/)) { - par.oncontextmenu = function(e) { - if (!e) var e = window.event; - // e is now the event in all browsers - if (e.target) targ = e.target; - else if (e.srcElement) targ = e.srcElement; - if (targ.nodeType == 3) // defeat Safari bug - targ = targ.parentNode; - // targ is now the target element - // We don't want to deprive the noble reader of a context menu - // for the section edit link, do we? (Might want to extend this - // to all 's.)links - if (targ.className != 'editsection') { - document.location = editHref; - return false; - } - } - } -} -*/ function setupCheckboxShiftClick() { if (document.getElementsByTagName) { -- 2.20.1