Changeset 2691 for trunk/phpgwapi


Ignore:
Timestamp:
05/03/10 14:51:33 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Corrigindo com loop infinito no 'redirect'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/js/tools/xlink.js

    r2686 r2691  
    99        _loading.src = URL_SERVER + 'phpgwapi/images/loading.gif'; 
    1010 
     11        var _last_request = null; 
     12 
    1113        function _click( _action, _cache ) 
    1214        { 
     
    1416                        _action = window.location.protocol + '//' + window.location.host + _action; 
    1517 
    16                 _divAppboxHeader.innerHTML = ''; 
     18                if ( _action == _last_request ) 
     19                        return false; 
    1720 
    18                 var _center = document.createElement( 'center' ); 
    19                 _center.appendChild( _loading ); 
     21                if ( _divAppboxHeader ) 
     22                        _divAppboxHeader.innerHTML = ''; 
    2023 
    21                 _container.innerHTML = ''; 
    22                 _container.appendChild( _center ); 
     24                if ( _container ) 
     25                { 
     26                        var _center = document.createElement( 'center' ); 
     27                        _center.appendChild( _loading ); 
     28 
     29                        _container.innerHTML = ''; 
     30                        _container.appendChild( _center ); 
     31                } 
    2332 
    2433                _connector.go( 
     
    2837                        'handler' : _handler 
    2938                } ); 
     39 
     40                _last_request = _action; 
    3041 
    3142                window.location = '#' + ( 
Note: See TracChangeset for help on using the changeset viewer.