Ignore:
Timestamp:
04/01/08 11:18:07 (16 years ago)
Author:
niltonneto
Message:

Correção da janela Adicionar Grupo, para otimizar a busca dos emails dos contatos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/js/cc.js

    r241 r253  
    308308                var data = unserialize(responseText);                    
    309309                Element('group_id').value = data['id_group'];                                                            
    310                 var options_contact_list = Element('contact_list'); 
     310                 
    311311                if(data['contact_list']) {                                       
    312                         options_contact_list.innerHTML = data['contact_list']; 
     312                        for(i = 0; i < data['contact_list'].length; i++) {                               
     313                                option = document.createElement('option'); 
     314                                option.value = data['contact_list'][i]['id_connection']; 
     315                                option.text = data['contact_list'][i]['names_ordered']+' ('+data['contact_list'][i]['connection_value']+')';                             
     316                                Element('contact_list').options[Element('contact_list').options.length] = option; 
     317                        } 
    313318                } 
    314319 
Note: See TracChangeset for help on using the changeset viewer.