Ignore:
Timestamp:
05/04/10 18:58:04 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Corrigindo problemas no expressoAdmin1_2.

Location:
trunk/expressoAdmin1_2/inc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.db_functions.inc.php

    r2469 r2707  
    683683                } 
    684684                         
    685                 return $result; 
     685                return json_encode( $result ); 
    686686        } 
    687687         
  • trunk/expressoAdmin1_2/inc/class.institutional_accounts.inc.php

    r2549 r2707  
    2929                                        $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 
    3030                                } 
    31                                 $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao 
     31 
     32                                $GLOBALS['phpgw']->js->validate_file('jscode','globals','expressoAdmin1_2'); 
     33                                $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2'); 
    3234                                $GLOBALS['phpgw']->js->validate_file('jscode','institutional_accounts','expressoAdmin1_2'); 
    3335                                $GLOBALS['phpgw']->js->validate_file('modal','modal','expressoAdmin1_2'); 
  • trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r2459 r2707  
    750750                                unset($u_tmp); 
    751751                        }                        
    752                 return $options; 
     752                return json_encode( $options ); 
    753753                } 
    754754        } 
     
    22922292        $return['status'] = 'true'; 
    22932293        $return['trs'] = $trs_string; 
    2294         return $return; 
     2294        return json_encode( $return ); 
    22952295}        
    22962296         
     
    23862386        $return['status'] = 'true'; 
    23872387        $return['trs'] = $trs_string; 
    2388         return $return; 
     2388        return json_encode( $return ); 
    23892389        } 
    23902390         
  • trunk/expressoAdmin1_2/inc/class.shared_accounts.inc.php

    r1983 r2707  
    110110                        $return['mailquota_used'] = $quota['mailquota_used'];                         
    111111                        $i = 0; 
     112                                                error_log( var_export( $owners_acl, true ), 3, '/tmp/log' ); 
    112113                        if( is_array($owners_acl) ){ 
    113114                                foreach($owners_acl as $key => $value) 
     
    124125                                $return['owners_acl'] = false; 
    125126                        }                         
    126                         return $return; 
     127                                                error_log( var_export( $return, true ), 3, '/tmp/log' ); 
     128                        return json_encode( $return ); 
    127129                } 
    128130                function delete($params){ 
  • trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php

    r2459 r2707  
    3535                                $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 
    3636                        } 
    37                         $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao 
     37                        $GLOBALS['phpgw']->js->validate_file('jscode','globals','expressoAdmin1_2'); 
     38                        $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2'); 
    3839                        $GLOBALS['phpgw']->js->validate_file('jscode','expressoadmin','expressoAdmin1_2'); 
    3940                        $GLOBALS['phpgw']->js->validate_file('jscode','managers','expressoAdmin1_2'); 
     
    124125 
    125126                        $p->set_var($var); 
    126                         echo "<script>var expressoAdmin_controller = '{$GLOBALS[ 'phpgw' ] -> link( '/controller.php' )}?action=';</script>" . $GLOBALS['phpgw']->js->get_script_links( ); 
     127                        $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script_thirst' ] .= "<script>var expressoAdmin_controller = '{$GLOBALS[ 'phpgw' ] -> link( '/expressoAdmin1_2/controller.php' )}?action=';</script>"; 
     128                        //echo "<script>var expressoAdmin_controller = '{$GLOBALS[ 'phpgw' ] -> link( '/controller.php' )}?action=';</script>" . $GLOBALS['phpgw']->js->get_script_links( ); 
    127129                        $p->pfp('out','body'); 
    128130                } 
     
    170172                        // Seta variaveis que estao no TPL 
    171173                        $var = Array( 
    172                                 'scripts_java'                  =>      $scripts_java,   
     174                                'scripts_java'                  =>      '',//$scripts_java,      
    173175                                //'action'                              => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uimanagers.validate'), 
    174176                                //'action'                              => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.bomanagers.add_managers'), 
     
    302304 
    303305                        $var = Array( 
    304                                 'scripts_java'                          => $scripts_java, 
     306                                'scripts_java'                          => '',//$scripts_java, 
    305307                                'action'                                        => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uimanagers.validate'), 
    306308                                'display_samba_suport'          => $this->config['expressoAdmin_samba_support'] == 'true' ? '' : 'display:none', 
     
    344346                                } 
    345347                        } 
    346                          
    347                         echo "<script>var expressoAdmin_controller = '{$GLOBALS[ 'phpgw' ] -> link( '/expressoAdmin1_2/controller.php' )}?action=';</script>" . $GLOBALS['phpgw']->js->get_script_links( ); 
     348 
     349                        $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script_thirst' ] .= "<script>var expressoAdmin_controller = '{$GLOBALS[ 'phpgw' ] -> link( '/expressoAdmin1_2/controller.php' )}?action=';</script>"; 
    348350                        echo $p->fp('out','form'); 
    349351                } 
  • trunk/expressoAdmin1_2/inc/class.uishared_accounts.inc.php

    r2549 r2707  
    3131                                        $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 
    3232                                } 
    33                                 $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao 
     33                                $GLOBALS['phpgw']->js->validate_file('jscode','globals','expressoAdmin1_2'); 
     34                                $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2'); 
    3435                                $GLOBALS['phpgw']->js->validate_file('jscode','shared_accounts','expressoAdmin1_2'); 
    3536                                $GLOBALS['phpgw']->js->validate_file('modal','modal','expressoAdmin1_2'); 
Note: See TracChangeset for help on using the changeset viewer.