Changeset 1612 for trunk/contactcenter/js
- Timestamp:
- 11/10/09 11:03:46 (15 years ago)
- Location:
- trunk/contactcenter/js
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/js/cc.js
r1599 r1612 1392 1392 //'<td style="width: 30px;" align="right"><input name="cc_conn_is_default" id="cc_conn_is_default_'+ CC_conn_count +'" type="radio"></td>'+ 1393 1393 '<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>' + 1394 '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength=" 50" type="text"> ' +1394 '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="30" type="text" onkeyup="formatPhone(this)"> ' + 1395 1395 '<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>'; 1396 1396 } -
trunk/contactcenter/js/ccAux.js
r1411 r1612 413 413 } 414 414 415 function formatPhone(obj){ 416 if (!Element("cc_conn_type_1").checked) { 417 obj.value = obj.value.replace(/[^\-\d\+\(\)\sx]/g, ""); 418 } 419 } 420 421 415 422 /***********************************************\ 416 423 * CONSTANTS * -
trunk/contactcenter/js/ccQuickAdd-plugin.js
r2 r1612 200 200 return false; 201 201 } 202 203 //Utiliza expressão regular para validar telefone 204 var rePhone = /^[0-9|(-)| |-]{0,15}$/; 205 206 if (!rePhone.test(this._fields[3].value)){ 207 alert("O número de telefone '" + this._fields[3].value + "' não é valido! Utilize apenas números.\n" + 208 "Parenteses, traços ou espaços em branco podem ser usados como carácter separador."); 209 return false; 210 } 211 202 212 203 var sdata = 'add='+escape(serialize(sdata)); 213 204 -
trunk/contactcenter/js/ccQuickAddContact.js
r1496 r1612 148 148 return false; 149 149 } 150 151 //Utiliza expressão regular para validar telefone 152 var rePhone = /^[0-9|(-)| |-]{0,15}$/; 153 154 if (!rePhone.test(sdata[3])){ 155 alert("O número de telefone '" + sdata[3] + "' não é valido! Utilize apenas números.\n" + 156 "Parenteses, traços ou espaços em branco podem ser usados como carácter separador."); 157 return false; 158 } 159 150 160 151 var sdata = 'add='+escape(serialize(sdata)); 161 152
Note: See TracChangeset
for help on using the changeset viewer.