Changeset 194b45c in github


Ignore:
Timestamp:
Apr 11, 2012 12:19:14 PM (14 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
2c4d0bc
Parents:
3d5240b7
Message:

Keep improvement from r6060: show 'loading...' message when redirecting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_json_output.php

    r3d5240b7 r194b45c  
    213213    { 
    214214        $location = rcmail::get_instance()->url($p); 
    215         $this->remote_response("window.setTimeout(\"location.href='{$location}'\", $delay);"); 
     215        $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay)); 
    216216        exit; 
    217217    } 
Note: See TracChangeset for help on using the changeset viewer.