r17659 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17658‎ | r17659 | r17660 >
Date:06:10, 14 November 2006
Author:simetrical
Status:old
Tags:
Comment:
Remove commented-out function from wikibits that I accidentally left in the code a while back.
Modified paths:
  • /trunk/phase3/skins/common/wikibits.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/wikibits.js
@@ -554,30 +554,6 @@
555555 }
556556 }
557557 }
558 -/*
559 -function addRightClickEditHandler(el) {
560 - // find the enclosing (parent) header
561 - var par = el.parentNode;
562 - if (par && par.nodeType == 1 && par.nodeName.match(/^[Hh][1-6]$/)) {
563 - par.oncontextmenu = function(e) {
564 - if (!e) var e = window.event;
565 - // e is now the event in all browsers
566 - if (e.target) targ = e.target;
567 - else if (e.srcElement) targ = e.srcElement;
568 - if (targ.nodeType == 3) // defeat Safari bug
569 - targ = targ.parentNode;
570 - // targ is now the target element
571 - // We don't want to deprive the noble reader of a context menu
572 - // for the section edit link, do we? (Might want to extend this
573 - // to all <a>'s.)links
574 - if (targ.className != 'editsection') {
575 - document.location = editHref;
576 - return false;
577 - }
578 - }
579 - }
580 -}
581 -*/
582558
583559 function setupCheckboxShiftClick() {
584560 if (document.getElementsByTagName) {