Changeset 1682 for trunk/contactcenter


Ignore:
Timestamp:
11/19/09 14:29:30 (14 years ago)
Author:
eduardoalex
Message:

Ticket #761 - Adicao dos langs e nome obrigatorio na adicao de contato rapido

Location:
trunk/contactcenter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/inc/class.ui_data.inc.php

    r1656 r1682  
    162162                        $GLOBALS['phpgw']->template->set_var('cc_msg_unavailable',lang('Unavailable function')); 
    163163/*****/ 
     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 
    164169                        $GLOBALS['phpgw']->template->set_var('cc_msg_no_cards',lang('No Cards')); 
    165170                        $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  
    773773    } 
    774774    if(!haveConnections){ 
    775         showMessage('É nescessário informar o nome ou telefone!'); 
     775        showMessage(Element('cc_msg_tel_or_mail_required').value); 
    776776        return false; 
    777777    } 
  • trunk/contactcenter/js/ccQuickAdd-plugin.js

    r1677 r1682  
    192192                if (empty) return false; 
    193193 
     194                if(this._fields[1].value=='') { 
     195                        alert(Element('cc_msg_name_mandatory').value); 
     196                        return false; 
     197                } 
    194198                //Utiliza expressão regular para validar email 
    195199                if (this._fields[4].value != '') { 
     
    203207                } 
    204208                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); 
    206210                        return false; 
    207211                } 
  • trunk/contactcenter/templates/classic/index.tpl

    r1517 r1682  
    1313<script src="js/cc.js" type="text/javascript"></script> 
    1414<!-- 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}"> 
    1517<input id="cc_msg_not_allowed" type="hidden" value="{cc_msg_not_allowed}"> 
    1618<input id="cc_msg_unavailable" type="hidden" value="{cc_msg_unavailable}"> 
  • trunk/contactcenter/templates/default/index.tpl

    r1600 r1682  
    1313<script src="js/cc.js" type="text/javascript"></script> 
    1414<!-- 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}"> 
    1517<input id="cc_msg_not_allowed" type="hidden" value="{cc_msg_not_allowed}"> 
    1618<input id="cc_msg_unavailable" type="hidden" value="{cc_msg_unavailable}"> 
Note: See TracChangeset for help on using the changeset viewer.