Ignore:
Timestamp:
07/08/10 17:52:20 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Aplicando alterações do branches 2.0 no branches 2.2

Location:
branches/2.2/expressoAdmin1_2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoAdmin1_2/inc/class.manager.inc.php

    r1913 r3018  
    1 <? 
     1<?php 
    22        /***********************************************************************************\ 
    33        * Expresso Administração                                                                                                   * 
  • branches/2.2/expressoAdmin1_2/js/jscode/connector.js

    r317 r3018  
    499499                          
    500500                id = url; 
    501                 connector.newRequest(id, url, method, handler, params); 
     501                admin_connector.newRequest(id, url, method, handler, params); 
    502502        } 
    503503         
     
    508508        //      form: form element (for upload files)    
    509509        function cExecuteForm(url, form, handler){ 
    510                 connector.buildBar(); 
     510                admin_connector.buildBar(); 
    511511                isExecuteForm = true;            
    512512                document.onmouseup = alertBut; 
    513513                 
    514                 connector.showProgressBar(); 
     514                admin_connector.showProgressBar(); 
    515515                if(! (divUpload = document.getElementById('divUpload'))) { 
    516516                        divUpload               = document.createElement('DIV');                 
     
    554554                if(isExecuteForm) { 
    555555                if(confirm("There's an action processing. Do you want abort it?")) { 
    556                         connector.hideProgressBar(); 
     556                        admin_connector.hideProgressBar(); 
    557557                        isExecuteForm = false; 
    558                         delete connector.requests[id];                                                           
    559                                 connector.requests[id] = null; 
     558                        delete admin_connector.requests[id];                                                             
     559                                admin_connector.requests[id] = null; 
    560560                        stop();                                          
    561561                        return; 
  • branches/2.2/expressoAdmin1_2/js/jscode/users.js

    r1913 r3018  
    139139        if (document.forms[0].mailalternateaddress.value != '') 
    140140                attrs_array['mailalternateaddress'] = document.forms[0].mailalternateaddress.value; 
    141         var attributes = connector.serialize(attrs_array); 
     141        var attributes = admin_connector.serialize(attrs_array); 
    142142 
    143143        var handler_validate_fields = function(data) 
     
    156156                        if (type == 'create_user') 
    157157                        { 
     158                                // Turn enabled checkbox on create user.  
     159                                document.getElementById('changepassword').disabled = false;  
    158160                                cExecuteForm ("$this.user.create", document.forms[0], handler_create); 
    159161                        } 
     
    203205        attrs_array['first_name'] = first_name; 
    204206        attrs_array['second_name'] = second_name; 
    205         var attributes = connector.serialize(attrs_array); 
     207        var attributes = admin_connector.serialize(attrs_array); 
    206208         
    207209        var handler_generate_login = function(data) { 
     
    539541                attrs_array['type'] = 'rename_user'; 
    540542                attrs_array['uid'] = new_uid; 
    541                 attributes = connector.serialize(attrs_array); 
     543                attributes = admin_connector.serialize(attrs_array); 
    542544         
    543545                cExecute ('$this.ldap_functions.validate_fields&attributes='+attributes, handler_validate_fields); 
  • branches/2.2/expressoAdmin1_2/templates/default/accounts_form.tpl

    r1991 r3018  
    9898                <tr bgcolor={row_on}> 
    9999                        <td colspan="2">{lang_password_expired}:</td> 
    100                         <td><input onchange="javascript:set_changepassword();" type="checkbox" {passwd_expired_checked} {disabled} name="passwd_expired" id="passwd_expired" value="1"</td> 
     100                        <td><input onclick="javascript:set_changepassword();" type="checkbox" {passwd_expired_checked} {disabled} name="passwd_expired" id="passwd_expired" value="1"></td> 
    101101                </tr> 
    102102 
    103103                <tr bgcolor={row_off}> 
    104104                        <td colspan="2">{lang_change_password}:</td> 
    105                         <td><input type="checkbox" {changepassword_checked} {disabled} name="changepassword" id="changepassword" value="1"</td> 
     105                        <td><input type="checkbox" {changepassword_checked} {disabled} name="changepassword" id="changepassword" value="1"></td> 
    106106                </tr> 
    107107 
    108108                <tr bgcolor={row_on}> 
    109109                        <td colspan="2">{lang_account_active}:</td> 
    110                         <td><input type="checkbox" {phpgwaccountstatus_checked} {disabled} name="phpgwaccountstatus" id="phpgwaccountstatus" value="1"</td> 
     110                        <td><input type="checkbox" {phpgwaccountstatus_checked} {disabled} name="phpgwaccountstatus" id="phpgwaccountstatus" value="1"></td> 
    111111                </tr> 
    112112 
    113113                <tr bgcolor={row_off}> 
    114114                        <td colspan="2">{lang_do_not_show_this_account_in_the_contact_center}:</td> 
    115                         <td><input type="checkbox" {phpgwaccountvisible_checked} {disabled} name="phpgwaccountvisible" id="phpgwaccountvisible" value="1"</td> 
     115                        <td><input type="checkbox" {phpgwaccountvisible_checked} {disabled} name="phpgwaccountvisible" id="phpgwaccountvisible" value="1"></td> 
    116116                </tr>            
    117117                {start_coment_expired} 
     
    158158                <tr bgcolor={row_off}> 
    159159                        <td>{lang_active_email_account}:</td> 
    160                         <td><input type="checkbox" {accountstatus_checked} {disabled} name="accountstatus" id="accountstatus" value="1"</td> 
     160                        <td><input type="checkbox" {accountstatus_checked} {disabled} name="accountstatus" id="accountstatus" value="1"></td> 
    161161                </tr> 
    162162         
     
    186186                <tr bgcolor={row_off}> 
    187187                        <td>{lang_only_forwarding}:</td> 
    188                         <td><input type="checkbox" {deliverymode_checked} {disabled} name="deliverymode" id="deliverymode" value="1"</td> 
     188                        <td><input type="checkbox" {deliverymode_checked} {disabled} name="deliverymode" id="deliverymode" value="1"></td> 
    189189                </tr> 
    190190 
     
    386386<script type="text/javascript"> 
    387387tab.display(1); 
     388// Note: The "change_password" field must be disabled and checked when the "passwd_expired" field will be enabled.   
     389set_changepassword();  
    388390</script> 
    389391 
Note: See TracChangeset for help on using the changeset viewer.