Changeset 928 for trunk/calendar/templates
- Timestamp:
- 05/27/09 18:06:15 (15 years ago)
- Location:
- trunk/calendar/templates/celepar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.