Changeset 2674 for trunk/phpgwapi/js


Ignore:
Timestamp:
04/30/10 12:21:35 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Criando persistência da última requisicao a ser recuperada no reload.

Location:
trunk/phpgwapi/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/js/expressoAjax/dom.js

    r2630 r2674  
    11XEvents.add( window, "onload", function( ) 
    22{ 
    3         if ( template == 'classic' ) 
     3        if ( template == 'classic' || template == 'celepar' ) 
    44                return false; 
    55 
  • trunk/phpgwapi/js/tools/xlink.js

    r2656 r2674  
    4949                                        _new_scripts[ _count ][ 2 ].substr( 
    5050                                                URL_SERVER.length - 1, 
    51                                                 _new_scripts[ _count ][ 2 ].indexOf( '?' ) - URL_SERVER.length + 1 
     51                                                _new_scripts[ _count ][ 2 ].length - URL_SERVER.length + 1 - ( 
     52                                                        ( _new_scripts[ _count ][ 2 ].indexOf( '?' ) < 0 ) ? 
     53                                                                0 : ( _new_scripts[ _count ][ 2 ].length - _new_scripts[ _count ][ 2 ].indexOf( '?' ) ) 
     54                                                ) 
    5255                                        ) 
    5356                                ); 
     
    8689                                _container.appendChild( _center ); 
    8790 
    88                                 var _cacheit = true;//( ( pLink.hasAttribute( 'cacheit' ) && pLink.getAttribute( 'cacheit' ) === 'true' ) ? true : false ); 
     91                                var _cacheit = false;//( ( pLink.hasAttribute( 'cacheit' ) && pLink.getAttribute( 'cacheit' ) === 'true' ) ? true : false ); 
    8992 
    9093                                _connector.go( 
     
    9497                                        'handler' : _handler 
    9598                                } ); 
     99 
     100                                window.location = '#' + ( 
     101                                        ( action.indexOf( URL_SERVER ) < 0 ) ? 
     102                                                action : action.substr( action.indexOf( URL_SERVER ) + URL_SERVER.length ) 
     103                                ); 
     104 
    96105                                return false; 
    97106                        }; 
Note: See TracChangeset for help on using the changeset viewer.