Changeset 142

Show
Ignore:
Timestamp:
06/27/08 09:12:28 (2 months ago)
Author:
felix
Message:

service commit, optional javascript "confirm()" support for action buttons...
to be extended / moved to all

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rapyd/components/component.php

    r141 r142  
    292292    else 
    293293    { 
    294       $action = "javascript:window.location='".$config['url']."'"; 
     294      if (isset($config['confirm'])) 
     295      { 
     296        $action = "javascript:if (confirm('".addslashes($config['confirm'])."')) { window.location='".$config['url']."' }"; 
     297      } 
     298      else 
     299      { 
     300        $action = "javascript:window.location='".$config['url']."'";   
     301      } 
     302       
    295303    } 
    296304    $position = (isset($config['position'])) ? $config['position'] : "TR";