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/js/jscode
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/js/jscode/expressoadmin.js

    r2604 r2707  
    5252                } 
    5353        } 
    54         _controller.go( { 
    55                 "access" : "$this.ldap_functions.get_associated_domain&context=" + context, 
     54        ExpressoLivre.go( { 
     55                "access" : "expressoAdmin1_2.ldap_functions.get_associated_domain&context=" + escape( context ), 
    5656                "handler" : function( data ) 
    5757                { 
  • trunk/expressoAdmin1_2/js/jscode/institutional_accounts.js

    r2352 r2707  
    6060                } 
    6161        } 
    62         cExecute ('$this.ldap_functions.get_available_users&context='+context, handler_get_users); 
     62        ExpressoLivre.go( { 
     63                "access" : 'expressoAdmin1_2.ldap_functions.get_available_users&context=' + escape(context), 
     64                "handler" : handler_get_users 
     65        } ); 
    6366} 
    6467 
     
    114117         
    115118        //Inclui usuario comecando com a pesquisa 
    116         for(i = 0; i < select_available_users_clone.length; i++){ 
    117                 if ( RegExp_name.test(select_available_users_clone[i].text) || (select_available_users_clone[i].value == -1) ) 
    118                 { 
    119                         sel = select_available_users_tmp.options; 
    120                         option = new Option(select_available_users_clone[i].text,select_available_users_clone[i].value); 
    121  
    122                         if (select_available_users_clone[i].value == -1) 
    123                                 option.disabled = true; 
    124  
    125                         sel[sel.length] = option; 
    126                 } 
    127         } 
     119        //for(i = 0; i < select_available_users_clone.length; i++){ 
     120        //      if ( RegExp_name.test(select_available_users_clone[i].text) || (select_available_users_clone[i].value == -1) ) 
     121        //      { 
     122        //              sel = select_available_users_tmp.options; 
     123        //              option = new Option(select_available_users_clone[i].text,select_available_users_clone[i].value); 
     124// 
     125//                      if (select_available_users_clone[i].value == -1) 
     126//                              option.disabled = true; 
     127// 
     128//                      sel[sel.length] = option; 
     129//              } 
     130//      } 
    128131        oWait.innerHTML = '&nbsp;'; 
    129132}                        
     
    202205        var handler_get_institutional_accounts = function(data) 
    203206        { 
     207                data = data.JSON( ); 
    204208                if (data.status == 'true') 
    205209                { 
     
    210214                        write_msg(data.msg, 'error'); 
    211215        } 
    212         cExecute ('$this.ldap_functions.get_institutional_accounts&input='+input, handler_get_institutional_accounts); 
     216        ExpressoLivre.go( { 
     217                "access" : 'expressoAdmin1_2.ldap_functions.get_institutional_accounts&input='+input, 
     218                "handler" : handler_get_institutional_accounts 
     219        } ); 
    213220} 
    214221 
  • trunk/expressoAdmin1_2/js/jscode/shared_accounts.js

    r2352 r2707  
    6262        var     handler_get_users = function(data) 
    6363        { 
     64                data = data.JSON( ); 
    6465                select_available_users = Element('ea_select_available_users'); 
    6566                 
     
    8283                } 
    8384        } 
    84         cExecute ('$this.ldap_functions.get_available_users2&context='+context, handler_get_users); 
     85        ExpressoLivre.go( { 
     86                "access" : 'expressoAdmin1_2.ldap_functions.get_available_users2&context='+context, 
     87                "handler" : handler_get_users 
     88        } ); 
    8589} 
    8690 
     
    239243        var handler_get_shared_accounts = function(data) 
    240244        { 
     245                data = data.JSON( ); 
    241246                if (data.status == 'true') 
    242247                { 
     
    247252                        write_msg(data.msg, 'error'); 
    248253        } 
    249         cExecute ('$this.ldap_functions.get_shared_accounts&input='+input, handler_get_shared_accounts); 
     254        ExpressoLivre.go( { 
     255                "access" : 'expressoAdmin1_2.ldap_functions.get_shared_accounts&input='+input, 
     256                "handler" : handler_get_shared_accounts 
     257        } ); 
    250258} 
    251259 
     
    254262        var handle_edit_shared_account = function(data) 
    255263        { 
     264                data = data.JSON( ); 
    256265                if (data.status == 'true') 
    257266                { 
     
    300309                        sinc_combos_org(data.user_context); 
    301310                        sharemailbox.ownersAcl = new Array(); 
    302             if( data.owners != "undefined" && data.owners_acl != "undefined" ){  
     311            if( data.owners && data.owners != "undefined" && data.owners_acl != "undefined" ){  
    303312                                for (i=0; i<data.owners.length; i++){ 
    304313                                                sharemailbox.ownersAcl[ data.owners[i] ] = data.owners_acl[i];   
     
    309318                        write_msg(data.msg, 'error'); 
    310319        } 
    311         cExecute ('$this.shared_accounts.get_data&uid='+uid, handle_edit_shared_account); 
     320        ExpressoLivre.go( { 
     321                "access" : 'expressoAdmin1_2.shared_accounts.get_data&uid='+uid, 
     322                "handler" : handle_edit_shared_account 
     323        } ); 
    312324} 
    313325 
     
    383395                var handler_get_available_users = function(data) 
    384396                { 
     397                        data = data.JSON( ); 
     398 
    385399                        select_available_users = document.getElementById('em_select_available_users'); 
    386400                 
     
    403417                        } 
    404418                } 
    405                 cExecute ("$this.ldap_functions.get_available_users2&context="+context, handler_get_available_users); 
     419                ExpressoLivre.go( { 
     420                        "access" : 'expressoAdmin1_2.ldap_functions.get_available_users2&context='+context, 
     421                        "handler" : handler_get_available_users 
     422                } ); 
    406423        } 
    407424 
Note: See TracChangeset for help on using the changeset viewer.