Changeset 2674 for trunk/index.php


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r2656 r2674  
    6666        if ( $app == 'home' && ! $api_requested ) 
    6767        { 
    68                 echo '<script>XLink( "' . $GLOBALS[ 'phpgw' ] -> link( '/home.php' ) . '", true );</script>'; 
     68                $target = 'home.php'; 
     69                if ( $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] && $GLOBALS['phpgw_info']['user']['apps'][$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']]) 
     70                        $target = $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/index.php'; 
     71 
     72                echo '<script>XEvents.add( window, "onload", function( ) { var target = window.location.hash; target = ( ( target && target.length > 1 ) ? URL_SERVER + target.substr( 1 ) : "' 
     73                        . $GLOBALS[ 'phpgw' ] -> link( $target ). '" );XLink( target ); } );</script>'; 
     74 
    6975                exit; 
    7076        } 
Note: See TracChangeset for help on using the changeset viewer.