Changeset 294 for trunk/contactcenter


Ignore:
Timestamp:
06/03/08 17:58:55 (16 years ago)
Author:
niltonneto
Message:

Correção da lista de contatos na janela de adicionar/editar grupo.
No Internet Explorer não aparecia, pois era usado o innerHTML do Select.

Location:
trunk/contactcenter
Files:
3 edited

Legend:

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

    r285 r294  
    188188/************ Edit Group *************/ 
    189189function editGroup(id){ 
    190         populateEditGroup(id); 
    191         ccAddGroup.window.open();                        
     190        populateEditGroup(id);   
    192191} 
    193192/* 
     
    306305        var handler = function(responseText) 
    307306        {                        
    308                 var data = unserialize(responseText);                    
     307                var data = unserialize(responseText); 
     308 
    309309                Element('group_id').value = data['id_group'];                                                            
    310                 var options_contact_list = Element('contact_list'); 
    311                 if(data['contact_list']) {                                       
    312                         options_contact_list.innerHTML = data['contact_list']; 
    313                 } 
     310                var options_contact_list = Element('span_contact_list'); 
     311                var select_contact_list = '<select id="contact_list" multiple name="contact_list[]" style="width:280px" size="10">'; 
     312                select_contact_list += data['contact_list'] + "</select>"; 
     313                options_contact_list.innerHTML = select_contact_list; 
    314314 
    315315                if(data['id_group']) { 
     
    332332                        return; 
    333333                } 
     334                ccAddGroup.window.open(); 
    334335        }; 
    335336                 
  • trunk/contactcenter/js/ccAddGroup.js

    r285 r294  
    3535                this.title = Element('title'); 
    3636                this.contact_in_list = Element('contact_in_list'); 
    37                 this.contact_list = Element('contact_list'); 
    3837                this.group_id = Element('group_id'); 
    3938                                 
     
    189188                 
    190189                if(reload) { 
    191                         for (j =0; j < this.contact_list.options.length; j++) { 
    192                                         this.contact_list.options[j].selected = false; 
    193                                         this.contact_list.options[j--] = null;                                   
     190                        if(Element("contact_list")) 
     191                        for (j =0; j < Element("contact_list").options.length; j++) { 
     192                                        Element("contact_list").options[j].selected = false; 
     193                                        Element("contact_list").options[j--] = null; 
    194194                        } 
    195195                } 
     
    201201         
    202202        cAddGroup.prototype.remUser = function(){ 
    203  
    204                 select = this.contact_list;                                                                              
     203                 
    205204                select_in = this.contact_in_list;                                                                
    206205 
     
    213212        cAddGroup.prototype.addUser = function(){ 
    214213 
    215                 select = this.contact_list;                                                                              
     214                select = Element("contact_list"); 
    216215                select_in = this.contact_in_list;                                                                
    217216                 
  • trunk/contactcenter/templates/default/addGroup.tpl

    r2 r294  
    3333                                        </tr> 
    3434                                        <tr height="30" class="th"> 
    35                                                 <td  align="right"><select id="contact_list" multiple name="contact_list[]" style="width:280px" size="10"></select></td> 
     35                                                <td  align="right"><span id='span_contact_list'/></td> 
    3636                                        </tr> 
    3737                                </table> 
Note: See TracChangeset for help on using the changeset viewer.