Ignore:
Timestamp:
04/22/10 11:33:37 (14 years ago)
Author:
amuller
Message:

Ticket #911 - Aproveitamento de funções comuns do expressoMail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/jscode/DropDownContacts.js

    r2602 r2616  
    8282        lines.cellspacing='0'; 
    8383 
    84         var REG_EXP = /^[^\#|^\$|^\%|^\!|^\?|^\"|^\']+$/; 
    8584        var match_cont = ""; 
    8685        for (var i=0; i<match_contacts.length; i++) 
    8786        { 
    88                 var aux = match_contacts[i].split(""); 
    89                 for ( var j = 0; j < aux.length; j ++ ) 
    90                 { 
    91                         if(REG_EXP.test(aux[j])){ 
    92                                 match_cont += aux[j]; 
    93                         }else{ 
    94                                 match_cont += ""; 
    95                         } 
    96                 } 
     87                match_cont += match_contacts[i]; 
     88 
    9789                var trElement = document.createElement('TR'); 
    9890                var tdElement = document.createElement('TD'); 
    9991                tdElement.id = 'td_DD_'+i; 
    10092                tdElement.name = fld_id; 
    101                 tdElement.onmousedown = function (){ 
     93                XEvents.add( tdElement, 'onmousedown', function ( ) 
     94                { 
    10295                        hideTip(); 
    10396                        makeMailList(this.innerHTML,this.name); 
    10497                        setTimeout('document.getElementById("'+this.name+'").focus()',300); 
    105                 }; 
    106                 tdElement.onmouseover = function (){ 
     98                } ); 
     99                XEvents.add( tdElement, 'onmouseover', function( ) 
     100                { 
    107101                        selectContact(this.id.substr(6)); 
    108                 }; 
     102                } ); 
    109103                tdElement.innerHTML = match_cont; 
    110104                trElement.appendChild(tdElement); 
Note: See TracChangeset for help on using the changeset viewer.