Ignore:
Timestamp:
03/09/12 16:04:36 (12 years ago)
Author:
douglasz
Message:

Ticket #2486 - Correção de interface e erros de variaveis

Location:
trunk/prototype/modules/mail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/css/label.css

    r5603 r5690  
    9393        font-size:11px; 
    9494        color:#000000;  
     95        cursor:pointer; 
     96} 
     97#MyMarckersList.list-label .title-my-labels:hover { 
     98        color:red !important; 
     99        text-decoration: none !important; 
    95100} 
    96101#MyMarckersList.list-label .status-list-labels{display:inline-block; position: absolute;} 
  • trunk/prototype/modules/mail/js/label.js

    r5677 r5690  
    6060} 
    6161 
    62 function rgb2hex(rgb){ 
    63  rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); 
    64  return "#" + 
    65   ("0" + parseInt(rgb[1],10).toString(16)).slice(-2) + 
    66   ("0" + parseInt(rgb[2],10).toString(16)).slice(-2) + 
    67   ("0" + parseInt(rgb[3],10).toString(16)).slice(-2); 
     62function rgb2hex(rgb){   
     63        if(!!(rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))){ 
     64                return "#" + 
     65                ("0" + parseInt(rgb[1],10).toString(16)).slice(-2) + 
     66                ("0" + parseInt(rgb[2],10).toString(16)).slice(-2) + 
     67                ("0" + parseInt(rgb[3],10).toString(16)).slice(-2); 
     68        }else{ 
     69                return rgb; 
     70        } 
    6871} 
    6972 
Note: See TracChangeset for help on using the changeset viewer.