Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -554,30 +554,6 @@ |
555 | 555 | } |
556 | 556 | } |
557 | 557 | } |
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 | | -*/ |
582 | 558 | |
583 | 559 | function setupCheckboxShiftClick() { |
584 | 560 | if (document.getElementsByTagName) { |