Changeset 7509 for branches/2.4


Ignore:
Timestamp:
11/13/12 14:19:33 (11 years ago)
Author:
eduardow
Message:

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

Location:
branches/2.4/contactcenter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/contactcenter/inc/class.ui_api.inc.php

    r5312 r7509  
    423423                                } 
    424424                                else if ($i == 4){ 
    425                                         $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" onkeyup="emailTolower(\'ccQuickAddI' .$i. '\')" maxlength="100" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px;">'."\n"; 
     425                                        $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" maxlength="100" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px; text-transform:lowercase;">'."\n"; 
    426426                                }else if ($i == 3){ 
    427427                                        $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" onkeyup="formatPhone(this)" maxlength="30" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px;">'."\n"; 
  • branches/2.4/contactcenter/js/cc.js

    r7367 r7509  
    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.