| | |
| | | | program/include/rcube_json_output.php | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2008, RoundCube Dev. - Switzerland | |
| | | | Copyright (C) 2008-2009, RoundCube Dev. - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | private $texts = array(); |
| | | private $commands = array(); |
| | | |
| | | public $type = 'js'; |
| | | public $ajax_call = true; |
| | | |
| | | |
| | |
| | | /** |
| | | * Delete all stored env variables and commands |
| | | */ |
| | | public public function reset() |
| | | public function reset() |
| | | { |
| | | $this->env = array(); |
| | | $this->texts = array(); |
| | |
| | | * @param mixed Either a string with the action or url parameters as key-value pairs |
| | | * @see rcmail::url() |
| | | */ |
| | | public function redirect($p = array(), $delay = 0) |
| | | public function redirect($p = array(), $delay = 1) |
| | | { |
| | | $location = rcmail::get_instance()->url($p); |
| | | $this->remote_response("window.setTimeout(\"location.href='{$location}'\", $delay);"); |