diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-11 16:19:14 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-11 16:19:14 +0000 |
| commit | e51a37d9b3c545dc691b5945a468684419c3d21f (patch) | |
| tree | 326091e8e25796372726e75069b1299bb2b06887 | |
| parent | ec910a781700d3c17d62423d44116e9747c5fb99 (diff) | |
Keep improvement from r6060: show 'loading...' message when redirecting
git-svn-id: https://svn.roundcube.net/trunk@6063 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_json_output.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_json_output.php b/roundcubemail/program/include/rcube_json_output.php index 99f08f5c9..f062d4b71 100644 --- a/roundcubemail/program/include/rcube_json_output.php +++ b/roundcubemail/program/include/rcube_json_output.php @@ -212,7 +212,7 @@ class rcube_json_output public function redirect($p = array(), $delay = 1) { $location = rcmail::get_instance()->url($p); - $this->remote_response("window.setTimeout(\"location.href='{$location}'\", $delay);"); + $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay)); exit; } |
