thomascube
2012-04-11 194b45c673ba55f68759a8ba1117e4052cac2dfc
Keep improvement from r6060: show 'loading...' message when redirecting

1 files modified
2 ■■■ changed files
program/include/rcube_json_output.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_json_output.php
@@ -212,7 +212,7 @@
    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;
    }