Changeset 1682 for trunk/contactcenter
- Timestamp:
- 11/19/09 14:29:30 (14 years ago)
- Location:
- trunk/contactcenter
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.ui_data.inc.php
r1656 r1682 162 162 $GLOBALS['phpgw']->template->set_var('cc_msg_unavailable',lang('Unavailable function')); 163 163 /*****/ 164 165 166 $GLOBALS['phpgw']->template->set_var('cc_msg_name_mandatory',lang('Name is mandatory')); 167 $GLOBALS['phpgw']->template->set_var('cc_msg_tel_or_mail_required',lang('Tel or email is required')); 168 164 169 $GLOBALS['phpgw']->template->set_var('cc_msg_no_cards',lang('No Cards')); 165 170 $GLOBALS['phpgw']->template->set_var('cc_msg_err_no_room',lang('No Room for Cards! Increase your browser area.')); -
trunk/contactcenter/js/cc.js
r1664 r1682 773 773 } 774 774 if(!haveConnections){ 775 showMessage( 'É nescessário informar o nome ou telefone!');775 showMessage(Element('cc_msg_tel_or_mail_required').value); 776 776 return false; 777 777 } -
trunk/contactcenter/js/ccQuickAdd-plugin.js
r1677 r1682 192 192 if (empty) return false; 193 193 194 if(this._fields[1].value=='') { 195 alert(Element('cc_msg_name_mandatory').value); 196 return false; 197 } 194 198 //Utiliza expressão regular para validar email 195 199 if (this._fields[4].value != '') { … … 203 207 } 204 208 else if(this._fields[3].value=='') { 205 alert( "Você precisa informar ou o e-mail ou o telefone");209 alert(Element('cc_msg_tel_or_mail_required').value); 206 210 return false; 207 211 } -
trunk/contactcenter/templates/classic/index.tpl
r1517 r1682 13 13 <script src="js/cc.js" type="text/javascript"></script> 14 14 <!-- JS MESSAGES --> 15 <input id="cc_msg_name_mandatory" type="hidden" value="{cc_msg_name_mandatory}"> 16 <input id="cc_msg_tel_or_mail_required" type="hidden" value="{cc_msg_tel_or_mail_required}"> 15 17 <input id="cc_msg_not_allowed" type="hidden" value="{cc_msg_not_allowed}"> 16 18 <input id="cc_msg_unavailable" type="hidden" value="{cc_msg_unavailable}"> -
trunk/contactcenter/templates/default/index.tpl
r1600 r1682 13 13 <script src="js/cc.js" type="text/javascript"></script> 14 14 <!-- JS MESSAGES --> 15 <input id="cc_msg_name_mandatory" type="hidden" value="{cc_msg_name_mandatory}"> 16 <input id="cc_msg_tel_or_mail_required" type="hidden" value="{cc_msg_tel_or_mail_required}"> 15 17 <input id="cc_msg_not_allowed" type="hidden" value="{cc_msg_not_allowed}"> 16 18 <input id="cc_msg_unavailable" type="hidden" value="{cc_msg_unavailable}">
Note: See TracChangeset
for help on using the changeset viewer.