Ignore:
Timestamp:
02/18/11 16:31:00 (13 years ago)
Author:
niltonneto
Message:

Ticket #1515 - Modificado chamada inicial para retornar preferencias para o Javascript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/contactcenter/js/ccMain.js

    r3644 r3795  
    11var last_id = 0;         
    2  
     2var preferences = null; 
    33function openwindow(url){        
    44        var window_features =   "scrollbars=yes,resizable=yes,location=no,menubar=no," +  
     
    4343                try 
    4444                { 
    45                         function ViewLdap(data) 
     45                        function handlerInitValues(sdata) 
    4646                        { 
    47                                 if( boolData = eval(data) ) 
     47                                var data = unserialize(sdata); 
     48                                preferences = data.preferences; 
     49                                if( boolData = eval(data.visible_all_ldap) ) 
    4850                                { 
    4951                                        ccTree = new ccCatalogTree({name: 'ccTree', id_destination: 'cc_tree', afterSetCatalog: 'ccSearchHidePanel(); updateCards()'}); 
     
    6264                        } 
    6365 
    64                         Connector.newRequest('ViewLdap', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_visible_all_ldap', 'GET', ViewLdap);             
     66                        Connector.newRequest('handlerInitValues', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_init_values', 'GET', handlerInitValues);                
    6567                         
    6668                        ccTree.Connector = Connector;                                            
Note: See TracChangeset for help on using the changeset viewer.