Changeset 5077 for branches


Ignore:
Timestamp:
09/08/11 15:45:03 (8 years ago)
Author:
rafaelraymundo
Message:

Ticket #2081 - Adicionar um contato em modo completo – campos obrigatórios.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/contactcenter/js/cc.js

    r5064 r5077  
    502502                form.method = 'POST'; 
    503503                form.enctype = 'multipart/form-data'; 
    504                 form.action = 'http://'+ document.domain + Element('cc_root_dir').value+'../index.php?menuaction=contactcenter.ui_data.data_manager&method=post_photo&id='+(id_contact != '' && id_contact != 'null' ? id_contact : ''); 
    505  
     504                form.action = document.location.protocol + '//'+ document.domain + Element('cc_root_dir').value+'../index.php?menuaction=contactcenter.ui_data.data_manager&method=post_photo&id='+(id_contact != '' && id_contact != 'null' ? id_contact : ''); 
    506505                var input_clone = Element('cc_pd_select_photo').cloneNode(false); 
    507506                form.appendChild(input_clone); 
     
    519518                var form = frame.contentWindow.document.all['cc_photo_form']; 
    520519                var id_contact = Element('cc_full_add_contact_id').value; 
    521                 form.action = 'http://'+ document.domain + Element('cc_root_dir').value+'../index.php?menuaction=contactcenter.ui_data.data_manager&method=post_photo&id='+(id_contact != '' && id_contact != 'null' ? id_contact : ''); 
     520                form.action = document.location.protocol + '//'+ document.domain + Element('cc_root_dir').value+'../index.php?menuaction=contactcenter.ui_data.data_manager&method=post_photo&id='+(id_contact != '' && id_contact != 'null' ? id_contact : ''); 
    522521 
    523522                form.submit(); 
     
    751750                if((CC_contact_full_info['connections'][type][i]['value'].length < 4) || 
    752751                    (!comp.test(CC_contact_full_info['connections'][type][i]['value']))){ 
    753                     showMessage('Endereço para conexão de ' + CC_contact_full_info['connections'][type][i]['name'] + ', não é válido'); 
     752                    showMessage((type == 1 ? 'E-mail' : 'Telefone') + ' para ' + CC_contact_full_info['connections'][type][i]['name'] + ', não é válido'); 
    754753                    return false; 
    755754                } 
     
    13811380                        '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px;" align="right"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+'</span></td>' + 
    13821381                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="100" type="text">&nbsp;' + 
    1383                         '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1382                        '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')" title="Remover"></td>'; 
    13841383                } 
    13851384                else if (Element("cc_conn_type_2").checked) 
     
    13891388                        '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px;" align="right"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+'</span></td>' + 
    13901389                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="30" type="text" onkeyup="formatPhone(this)">&nbsp;' + 
    1391                         '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1390                        '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')" title="Remover"></td>'; 
    13921391                } 
    13931392        } 
Note: See TracChangeset for help on using the changeset viewer.