[Typo3-dev] Click menu / right click

Kasper Skårhøj kasper2004 at typo3.com
Thu Nov 25 13:53:13 CET 2004


THANKS!

I have been waiting for that help in a long time.

However; Is it proper xhtml?

WIll be added to CVS soon.

- kasper


On Thu, 2004-11-25 at 09:47, Wolfgang Klinger wrote:
>  *hiya!*
> 
>  It's common in standard user interfaces, that a right click opens
>  a context menu.. and I would call TYPO3's clickmenu a context menu;
> 
>  Now there's a Javascript event called "oncontextmenu" that works in 
>  all recent browsers like IE 5+, Netscape 6+, Safari, Firefox, ...
> 
>  I've changed the following line in typo3/template.php (method
>  wrapClickMenuOnIcon, line 294) and it works like a charm:
> -------
> return $returnOnClick ? $onClick : '<a href="#" oncontextmenu="'.htmlspecialchars($onClick).'" onclick="'.htmlspecialchars($onClick).'">'.$str.'</a>';
> -------
>  
>  Please think about it, IMHO that's a big improvement on usability!
>  (don't tell me that you've never right clicked on the icons) ;-)
> 
>  There are some other occurences of "loadTopMenu" (copy, ..) so please
>  make a grep for that and implement it wherever needed!
>  (though this should be configurable as usual to fit the personal needs)
> 
> 
>  tia, bye
>  Wolfgang
> 
> 
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
-- 
- kasper

----------------
Man søger fred i rigdom, glans og ære
og tænker: Hvad kan hjertet mer begære?
men dybt derinde bor den samme længsel,
og hjertet græder i sit gyldne fængsel.






More information about the TYPO3-dev mailing list