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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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                 
Note: See TracChangeset for help on using the changeset viewer.