Ignore:
Timestamp:
11/07/12 13:38:22 (11 years ago)
Author:
eduardow
Message:

Ticket #3185 - Melhorar disposição do campo email na adição de contatos

File:
1 edited

Legend:

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

    r7257 r7497  
    652652                return false; 
    653653        } 
    654  
     654        //Force emails to Lower Case 
     655        txtField0 = Element("cc_conn_value_0"); 
     656 
     657        if (txtField0 != null && (txtField0.value.length > 0)) { 
     658                txtField0.value = txtField0.value.toLowerCase(); 
     659        } 
     660        txtField1 = Element("cc_conn_value_1"); 
     661 
     662        if (txtField1 != null && (txtField1.value.length > 0)) { 
     663                txtField1.value = txtField1.value.toLowerCase(); 
     664        } 
    655665        /* First thing: Send Photo */ 
    656666        if (Element('cc_pd_select_photo').value != '' && !is_ie) 
     
    16511661                        //'<td style="width: 30px;" align="right"><input name="cc_conn_is_default" id="cc_conn_is_default_'+ CC_conn_count +'" type="radio"></td>'+ 
    16521662                        '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px; padding-left: 55px;" align="left"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+':'+'</span></td>' + 
    1653                         '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" onkeyup="javascript:emailTolower(\'cc_conn_value_' + CC_conn_count + '\')" style="width: 150px;" maxlength="100" type="text">&nbsp;' + 
     1663                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px; text-transform:lowercase;" maxlength="100" type="text">&nbsp;' + 
    16541664                        '<img align="top" alt="X" title="X" src="templates/default/images/x.png" style="width:18px; height:18px; cursor:pointer;" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
    16551665                } 
     
    16591669                        //'<td style="width: 30px;" align="right"><input name="cc_conn_is_default" id="cc_conn_is_default_'+ CC_conn_count +'" type="radio"></td>'+ 
    16601670                        '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px; padding-left: 55px;" align="left"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+':'+'</span></td>' + 
    1661                         '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" onkeyup="javascript:emailTolower(\'cc_conn_value_' + CC_conn_count + '\')" style="width: 150px;" maxlength="30" type="text" onkeyup="formatPhone(this);">&nbsp;' + 
     1671                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px; text-transform:lowercase;" maxlength="30" type="text" onkeyup="formatPhone(this);">&nbsp;' + 
    16621672                        '<img align="top" alt="X" title="X" src="templates/default/images/x.png" style="width:18px; height:18px; cursor:pointer;" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
    16631673                } 
Note: See TracChangeset for help on using the changeset viewer.