Changeset 930


Ignore:
Timestamp:
05/27/09 18:33:25 (15 years ago)
Author:
rafaelraymundo
Message:

Ticket #531 - Verifica se o numero minimo de caracteres foi preenchido

Location:
trunk/calendar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.uicalendar.inc.php

    r928 r930  
    46834683                                                                // Verifica o tipo da visualização da árvore LDAP, configurado no admin da Agenda 
    46844684                                                                $recursive = $GLOBALS['phpgw_info']['server']['cal_type_tree_participants'] == '1' ? true : false; 
    4685                                                                 $combo_org = $this->get_organizations(trim(strtolower($context)),$user_context, $recursive); 
     4685                                                                //$combo_org = $this->get_organizations(trim(strtolower($context)),$user_context, $recursive); 
    46864686                                                                $footer_ext_participantes = lang("Tip: To search in the <b>Global Catalog</b>, type the <b>F9</b> key, like the ExpressoMail."); 
     4687                                                                //Caso o minimo de caracteres para a busca nao tenha sido preenchido ele sera por padrao = 3 
     4688                                                                if(!$GLOBALS['phpgw_info']['server']['min_num_characters']){ 
     4689                                                                        $GLOBALS['phpgw_info']['server']['min_num_characters'] = 3; 
     4690                                                                } 
     4691 
     4692                                                                if ($GLOBALS['phpgw_info']['server']['cal_type_tree_participants'] == '3'){ 
     4693                                                                        $combo_org = '<option value='.$context.'>'.strtoupper($context).'</option>'; 
     4694                                                                }else{ 
     4695                                                                        $combo_org = $this->get_organizations(trim(strtolower($context)),$user_context, $recursive); 
     4696                                                                } 
    46874697 
    46884698                                                                if ($param['plain'] != "True"){ 
  • trunk/calendar/templates/celepar/config.tpl

    r928 r930  
    11<!-- BEGIN header --> 
    2 <form method="POST" action="{action_url}"> 
     2<script type="text/javascript"> 
     3function minValue() 
     4{ 
     5        if (document.forms["adminForm"]["minNum"].value==""){ 
     6                alert ("Inserir o numero minimo de caracteres"); 
     7                return false; 
     8        } 
     9        return true; 
     10} 
     11</script> 
     12 
     13<form name="adminForm" method="POST" action="{action_url}" onSubmit="return minValue()"> 
    314<table border="0" align="center"> 
    415   <tr bgcolor="{th_bg}"> 
     
    5162    <td>{lang_Select_type_tree_view}</td> 
    5263    <td> 
    53      <select name="newsettings[cal_type_tree_participants]">       
     64     <select name="newsettings[cal_type_tree_participants]"> 
     65      <option value="3" {selected_cal_type_tree_participants_3}>{lang_all_levels}</option> 
    5466      <option value="2" {selected_cal_type_tree_participants_2}>{lang_first_level_with_recursive_search}</option> 
    5567      <option value="1" {selected_cal_type_tree_participants_1}>{lang_all_levels_with_not_recursive_search}</option>       
     
    6173   <td>{lang_Min_number_characters}</td> 
    6274   <td> 
    63       <input type="text" value="{value_min_num_characters}" name="newsettings[min_num_characters]" size=2 maxlength=1/> 
     75      <input type="text" id="minNum" value="{value_min_num_characters}" name="newsettings[min_num_characters]" size=2 maxlength=1/> 
    6476   </td> 
    6577   </tr> 
Note: See TracChangeset for help on using the changeset viewer.