Ignore:
Timestamp:
04/20/10 11:58:37 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Corrigindo problemas causados por javascripts inseridos dentro de tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r2598 r2603  
    161161$GLOBALS['phpgw']->js->validate_file( 'jscode', 'DropDownContacts', 'expressoMail1_2' ); 
    162162$GLOBALS['phpgw']->js->validate_file( 'jscode', 'InfoContact', 'expressoMail1_2' ); 
    163 $GLOBALS['phpgw']->js->validate_file( 'jscode', 'main', 'expressoMail1_2' ); 
    164163$GLOBALS['phpgw']->js->validate_file( 'jscode', 'local_messages', 'expressoMail1_2' ); 
    165164$GLOBALS['phpgw']->js->validate_file( 'jscode', 'messages_controller', 'expressoMail1_2' ); 
    166165$GLOBALS['phpgw']->js->validate_file( 'jscode', 'rich_text_editor', 'expressoMail1_2' ); 
    167166$GLOBALS['phpgw']->js->validate_file( 'jscode', 'wfolders', 'expressoMail1_2' ); 
     167$GLOBALS['phpgw']->js->validate_file( 'jscode', 'main', 'expressoMail1_2' ); 
    168168 
    169169if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'expressoMail' ][ 'use_shortcuts' ] ) 
     
    194194$script .= '    expresso.connector.updateVersion = "'. $GLOBALS['phpgw_info']['flags']['update_version'] . '";'; 
    195195$script .= '    var cyrus_delimiter = "' . $_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'] . '";'; 
    196 //$script .= '  var init_time = setInterval( function( ){ if ( document.body ){ clearTimeout( init_time );init( ); } }, "4000" );'; 
     196$script .= ( ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) || array_key_exists( 'BackgroundRequest', $_GET ) ) ? 'init( );' : 'XEvents.add( window, "onload", init)' ); 
    197197$script .= '</script>'; 
    198198 
Note: See TracChangeset for help on using the changeset viewer.