| | |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | | Author: Aleksander Machniak <alec@alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | | |
| | |
| | | |
| | | public $type = 'js'; |
| | | public $ajax_call = true; |
| | | |
| | | |
| | | /** |
| | | * Set environment variable |
| | | * |
| | | * @param string $name Property name |
| | | * @param mixed $value Property value |
| | | */ |
| | | public function set_env($name, $value) |
| | | { |
| | | $this->env[$name] = $value; |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | public function redirect($p = array(), $delay = 1) |
| | | { |
| | | $location = rcmail::get_instance()->url($p); |
| | | $location = $this->app->url($p); |
| | | $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", |
| | | rcmail::JS_OBJECT_NAME, $location, $delay)); |
| | | exit; |