Changeset 928 for trunk/calendar
- Timestamp:
- 05/27/09 18:06:15 (15 years ago)
- Location:
- trunk/calendar
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.uicalendar.inc.php
r927 r928 4686 4686 $footer_ext_participantes = lang("Tip: To search in the <b>Global Catalog</b>, type the <b>F9</b> key, like the ExpressoMail."); 4687 4687 4688 /*if ($param['plain'] != "True"){4688 if ($param['plain'] != "True"){ 4689 4689 4690 4690 // Begin load array lang 4691 4691 ob_start(); 4692 @include($module_name.'/inc/load_lang.php');4692 //@include($module_name.'/inc/load_lang.php'); 4693 4693 $load_lang_vars = ob_get_contents(); 4694 4694 ob_end_clean(); 4695 4695 // End load array_lang 4696 } */4696 } 4697 4697 4698 4698 $var['participants'] = array … … 4714 4714 '</td>'. 4715 4715 '<td valign="bottom">'. 4716 //' '.lang("Organization").': '.4717 //' <select name="org_context" id="combo_org" onchange="javascript:get_available_users(\''.$module_name.'\',this.value,\''.($recursive ? "" : "search").'\');">'.$combo_org.'</select>'.4716 ' '.lang("Organization").': '. 4717 ' <select name="org_context" id="combo_org" onchange="javascript:get_available_users(\''.$module_name.'\',this.value,\''.($recursive ? "" : "search").'\');">'.$combo_org.'</select>'. 4718 4718 ' <br>'. 4719 4719 ' <font color="red"><span id="cal_span_searching"> </span></font>'. 4720 4720 ' <br>'.lang("Search for").':'. 4721 ' <input value="" id="cal_input_searchUser" size="35" autocomplete="off" onkeyup="javascript:optionFinderTimeout(this )"><br>'.4721 ' <input value="" id="cal_input_searchUser" size="35" autocomplete="off" onkeyup="javascript:optionFinderTimeout(this,'.$GLOBALS['phpgw_info']['server']['min_num_characters'].')"><br>'. 4722 4722 ' <b>'.lang("Available users and groups").'</b><br>'. 4723 4723 ' <select id="user_list_in" style="width: 300px" multiple size="13"></select>'. 4724 4724 '</td>'. 4725 4725 '</tr>'. 4726 '</table>'. 4726 '</table>'. 4727 4727 '<script type="text/javascript" src="phpgwapi/js/wz_dragdrop/wz_dragdrop.js"></script>'. 4728 4728 '<script type="text/javascript" src="phpgwapi/js/dJSWin/dJSWin.js"></script>'. … … 4732 4732 "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ". 4733 4733 "<script type='text/javascript'>" . 4734 //"var timeout_get_available_users = setTimeout('get_available_users(\"".$module_name."\",\'".$user_context."\',\'".($recursive ? "" : "search")."\')',1000);".4734 "var timeout_get_available_users = setTimeout('get_available_users(\"".$module_name."\",\'".$user_context."\',\'".($recursive ? "" : "search")."\')',1000);". 4735 4735 "</script> " 4736 4736 ); -
trunk/calendar/templates/celepar/config.tpl
r42 r928 57 57 </td> 58 58 </tr> 59 60 <tr bgcolor="{row_on}"> 61 <td>{lang_Min_number_characters}</td> 62 <td> 63 <input type="text" value="{value_min_num_characters}" name="newsettings[min_num_characters]" size=2 maxlength=1/> 64 </td> 65 </tr> 59 66 <!-- END body --> 60 67 … … 69 76 <input type="submit" name="submit" value="{lang_submit}"> 70 77 <input type="submit" name="cancel" value="{lang_cancel}"> 71 </td>78 </td> 72 79 </tr> 73 80 </table> -
trunk/calendar/templates/celepar/js/edit_exmail.js
r927 r928 21 21 22 22 function get_available_users(filter) 23 //function get_available_users(path,context,type) 23 24 { 24 25 var handler_get_available_users = function(data) … … 53 54 } 54 55 } 55 56 //document.getElementById('combo_org').value = context;57 cExecute ('expressoMail1_2'+'.ldap_functions.search_users&filter='+filter+'&type=search', handler_get_available_users);58 } 59 60 function optionFinderTimeout(obj ){56 context = document.getElementById('combo_org').value; 57 cExecute ('expressoMail1_2'+'.ldap_functions.search_users&filter='+filter+'&context='+context+'&type=search', handler_get_available_users); 58 //cExecute (path+'.ldap_functions.get_available_users&context='+context+'&type='+type, handler_get_available_users); 59 } 60 61 function optionFinderTimeout(obj,numMin){ 61 62 var oWait = document.getElementById("cal_span_searching"); 62 if (obj.value.length >= 4){63 if (obj.value.length >= numMin){ 63 64 clearTimeout(finderTimeout); 64 65 oWait.innerHTML = 'Buscando...'; 65 var finderTimeout = setTimeout("optionFinder('"+obj.id+"' )",500);66 var finderTimeout = setTimeout("optionFinder('"+obj.id+"','"+numMin+"')",500); 66 67 }else { 67 oWait.innerHTML = 'Mínimo de 4letras para pesquisa';68 oWait.innerHTML = 'Mínimo de '+numMin+' letras para pesquisa'; 68 69 var select_available_users_tmp = document.getElementById('user_list_in'); 69 70 for(var i = 0;i < select_available_users_tmp.options.length; i++) … … 72 73 } 73 74 74 function optionFinder(id ){75 function optionFinder(id,numMin){ 75 76 76 77 var oWait = document.getElementById("cal_span_searching"); 77 78 var oText = document.getElementById(id); 78 79 79 80 if (oText.value.length < 4) {80 if (oText.value.length < numMin) { 81 81 oWait.innerHTML = ''; 82 82 var select_available_users_tmp = document.getElementById('user_list_in'); … … 85 85 } 86 86 87 if (oText.value.length >= 4) {87 if (oText.value.length >= numMin) { 88 88 get_available_users(oText.value); 89 89
Note: See TracChangeset
for help on using the changeset viewer.