[Tickets #10121] DIMP view ignores onclick handler from menu.php
    bugs at horde.org 
    bugs at horde.org
       
    Wed May 25 12:34:10 UTC 2011
    
    
  
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10121
------------------------------------------------------------------------------
  Ticket             | 10121
  Created By         | Ralf Lang (B1 Systems GmbH) <lang at b1-systems.de>
  Summary            | DIMP view ignores onclick handler from menu.php
  Queue              | IMP
  Version            | 5.0.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------
Ralf Lang (B1 Systems GmbH) <lang at b1-systems.de> (2011-05-25 12:34) wrote:
In menu.php the description says
  * These attributes are optional:
  *
  *  'icon'      The filename of an icon to use for the menu item.
  *  'icon_path' The path to the icon if it doesn't exist in the graphics/
  *              directory.
  *  'target'    The "target" of the link (e.g. '_top', '_blank').
  *  'onclick'   Any JavaScript to execute on the "onclick" event.
It is not clear from the description that this doesn't work in ajax  
mode / DIMP.
Example:
$_menu[] = array('url' => 'http://www.google.de',
                'text' => 'Google Link',
                'onclick' => "alert('You have clicked Google!')",
Works as desired in traditional mode, but in ajax mode, no popup is displayed.
Is this intended (and just not documented) or is it a bug?
    
    
More information about the bugs
mailing list