summaryrefslogtreecommitdiff
path: root/program/include/rcube_json_output.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-11 16:03:16 +0000
committeralecpl <alec@alec.pl>2012-04-11 16:03:16 +0000
commit3d5240b70d39b398018c0c04c420fc86da65d41a (patch)
tree13810b2f549adeba0b89dfec40faf566d39c9da6 /program/include/rcube_json_output.php
parent4dbc961b116f02f85d87d6a51446ba4b64bbc1ba (diff)
- Revert r6060, fix #1487822 using css-only
Diffstat (limited to 'program/include/rcube_json_output.php')
-rw-r--r--program/include/rcube_json_output.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php
index f062d4b71..99f08f5c9 100644
--- a/program/include/rcube_json_output.php
+++ b/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(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay));
+ $this->remote_response("window.setTimeout(\"location.href='{$location}'\", $delay);");
exit;
}