Update of /cvsroot/moregroupware/mgw/modules/webmail2/templates/default/tree
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8166
Modified Files:
ftiens4.js
Log Message:
Making folder tree popup menu functional in Opera:
Moved away from declaring a context menu override at the component element
level. Opera does NOT allow "oncontextmenu" at either document or
component element levels. This patch swiches to using onmousedown for
button => 2. It also adds a document.oncontextmenu override to
a do nothing function in order to eliminate any browser context menus from
appearing in IE & Gecko. Context menu can still appear with Opera, but it
is easy enough to avoid doing so by releasing the button with the cursor
over the tree popup menu and not the frame/document element behind it.
Index: ftiens4.js
===================================================================
RCS file: /cvsroot/moregroupware/mgw/modules/webmail2/templates/default/tree/ftiens4.js,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ftiens4.js 5 Apr 2004 10:55:01 -0000 1.15
--- ftiens4.js 3 Mar 2006 23:33:12 -0000 1.16
***************
*** 352,360 ****
}
}
!
if (isTextLink) {
! docW += "<a href='#' onclick='" + linkset + "' TARGET='_top' onMouseout='delayhidemenu()' oncontextmenu='showmenu(event,"+this.account+","+this.idnum+"); return false;' id=\"itemTextLink"+this.id+"\" ";
} else {
! docW = docW + "<a href='#' onMouseout='delayhidemenu()' oncontextmenu='showmenu(event,"+this.account+","+this.idnum+"); return false;' onclick='showmenu(event,"+this.account+","+this.idnum+"); return false;' TARGET=_top ";
}
--- 352,360 ----
}
}
!
if (isTextLink) {
! docW += "<a href='#' onclick='" + linkset + "' TARGET='_top' onMouseout='delayhidemenu()' onmousedown='if(event.button < 2) {return false;} showmenu(event,"+this.account+","+this.idnum+"); return false;' id=\"itemTextLink"+this.id+"\" ";
} else {
! docW = docW + "<a href='#' onMouseout='delayhidemenu()' onmousedown='if(event.button < 2) {return false;} showmenu(event,"+this.account+","+this.idnum+"); return false;' onclick='showmenu(event,"+this.account+","+this.idnum+"); return false;' TARGET=_top ";
}
***************
*** 1216,1223 ****
SetCookie('highlightedTreeviewLink', '')
}
is_loaded = true;
}
!
function findfirstfolder() {
if (parent.frames["rightframe"] && parent.frames.rightframe.frames["maillist"] && parent.frames.rightframe.frames.maillist.mbox_id) {
--- 1216,1229 ----
SetCookie('highlightedTreeviewLink', '')
}
+
+ doc.oncontextmenu=donothing;
is_loaded = true;
}
!
! function donothing() {
! return false;
! }
!
function findfirstfolder() {
if (parent.frames["rightframe"] && parent.frames.rightframe.frames["maillist"] && parent.frames.rightframe.frames.maillist.mbox_id) {
|