Ignore:
Timestamp:
05/10/12 15:58:48 (12 years ago)
Author:
alexandrecorreia
Message:

Ticket #2713 - Corrigido erro ao carregar alguns itens do ExpressoAdmin.

Location:
trunk/expressoAdmin1_2
Files:
7 edited

Legend:

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

    r5593 r6157  
    167167                function add_groups() 
    168168                { 
    169                         $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 
    170169                        if ($this->current_config['expressoAdmin_samba_support'] == 'true') 
    171170                                $GLOBALS['phpgw']->js->set_onload('get_available_sambadomains(document.forms[0].context.value, \'create_group\');'); 
     
    246245                function edit_groups() 
    247246                { 
    248                         $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 
    249  
    250247                        $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
    251248                        $manager_acl = $this->functions->read_acl($manager_lid); 
  • trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php

    r5593 r6157  
    167167                function add_maillists() 
    168168                { 
    169                                 $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 
    170  
    171169                        $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
    172170                        $manager_acl = $this->functions->read_acl($manager_lid); 
     
    215213                function edit_maillists() 
    216214                { 
    217                         $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 
    218  
    219215                        $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
    220216                        $manager_acl = $this->functions->read_acl($manager_lid); 
     
    315311                function scl_maillists() 
    316312                { 
    317                         $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); 
    318                          
    319313                        $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
    320314                        $manager_acl = $this->functions->read_acl($manager_lid); 
  • trunk/expressoAdmin1_2/js/jscode/expressoadmin.js

    r5133 r6157  
    2525        var handler_associated_domain = function(data) 
    2626        { 
    27                 if (data != null) 
     27                if( document.forms[0].associated_domain ) 
    2828                { 
    29                         document.forms[0].associated_domain.value = data; 
    30                 } 
    31                 else 
    32                 { 
    33                         document.forms[0].associated_domain.value = ''; 
     29                        if ( data != null ) 
     30                        { 
     31                                document.forms[0].associated_domain.value = data; 
     32                        } 
     33                        else 
     34                        { 
     35 
     36                                document.forms[0].associated_domain.value = ''; 
     37                        } 
    3438                } 
    3539        }; 
     
    6367                                if( i < (organization_name.length - 1) ) context +=  '.'; 
    6468                        } 
    65                         if (document.forms[0].associated_domain.value != '') 
     69                        if( document.forms[0].associated_domain && document.forms[0].associated_domain.value != '' ) 
    6670                        { 
    6771                                associatedDomain_name = document.forms[0].associated_domain.value; 
  • trunk/expressoAdmin1_2/templates/default/groups_form.tpl

    r5133 r6157  
    7777                                                         
    7878                                                        <br> 
    79                                                         <!-- 
    80                                                         <input type="checkbox" name="ea_check_allUsers" id="ea_check_allUsers" onclick="javascript:get_available_users(org_context.value, this.checked);">{lang_show_users_from_all_sub-organizations}. 
    81                                                         --> 
    8279                                                        <br><br> 
    8380                                                         
  • trunk/expressoAdmin1_2/templates/default/institutional_accounts_modal.tpl

    r5133 r6157  
    4949                        <select name="org_context" id="ea_combo_org_available_users" onchange="javascript:get_available_users(this.value);">{all_organizations}</select> 
    5050                        <br /> 
    51                         <!-- 
    52                         <input type="checkbox" name="ea_check_allUsers" id="ea_check_allUsers" onclick="javascript:get_available_users(org_context.value, this.checked);">{lang_all_users}. 
    53                         --> 
    5451                        <br /><br /> 
    5552                                                         
  • trunk/expressoAdmin1_2/templates/default/maillists_form.tpl

    r5133 r6157  
    6464                                                        <select name="org_context" id="ea_combo_org_maillists" onchange="javascript:get_available_users(this.value, ea_check_allUsers.checked);">{combo_all_orgs}</select> 
    6565                                                        <br> 
    66                                                         <!-- 
    67                                                         <input type="checkbox" name="ea_check_allUsers" id="ea_check_allUsers" onclick="javascript:get_available_users(org_context.value, this.checked);">{lang_show_users_from_all_sub-organizations}. 
    68                                                         --> 
    6966                                                        <br><br> 
    7067                                                         
  • trunk/expressoAdmin1_2/templates/default/shared_accounts_modal.tpl

    r5907 r6157  
    112112                        <select name="org_context" id="ea_combo_org_available_users" >{all_organizations}</select> 
    113113                        <br> 
    114                         <!-- 
    115                         <input type="checkbox" name="ea_check_allUsers" id="ea_check_allUsers">{lang_all_users}. 
    116                         --> 
    117114                        <br><br> 
    118115                                                         
Note: See TracChangeset for help on using the changeset viewer.