Changeset 1515


Ignore:
Timestamp:
10/20/09 10:10:00 (14 years ago)
Author:
eduardoalex
Message:

Ticket #681 - Ajuste no tamplate classic alterando o arquivo edit_exmail.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/templates/classic/js/edit_exmail.js

    r1500 r1515  
    2121var agt = navigator.userAgent.toLowerCase(); 
    2222var is_firefox_0 = agt.indexOf('firefox/1.0') != -1 && agt.indexOf('firefox/0.') ? true : false; 
    23  
    24 function optionFinderTimeout(obj) 
    25 { 
    26         clearTimeout(finderTimeout);     
    27         var oWait = document.getElementById("cal_span_searching"); 
    28         oWait.innerHTML = document.getElementById("txt_searching").value + '...'; 
    29         var finderTimeout = setTimeout("optionFinder('"+obj.id+"')",500); 
    30 } 
    31 function optionFinder(id) { 
    32         var oWait = document.getElementById("cal_span_searching"); 
    33         var oText = document.getElementById(id);                         
    34         var select_available_users_tmp = document.getElementById('user_list_in') 
    35         for(var i = 0;i < select_available_users_tmp.options.length; i++) 
    36                 select_available_users_tmp.options[i--] = null; 
    37  
    38         var RegExp_name = new RegExp("\\b"+oText.value, "i"); 
    39  
    40         for(i = 0; i < select_available_users_clone.length; i++){ 
    41                 if (RegExp_name.test(select_available_users_clone[i].text) || select_available_users_clone[i].value =="-1") 
    42                 { 
    43                         sel = select_available_users_tmp.options; 
    44                         option = new Option(select_available_users_clone[i].text,select_available_users_clone[i].value); 
    45                         if( select_available_users_clone[i].value == "-1") option.disabled = true; 
    46                         sel[sel.length] = option; 
    47                 } 
    48         }        
    49         oWait.innerHTML = '&nbsp;'; 
    50 }        
    5123         
    5224/* 
     
    271243        loadScript(path+"/js/common_functions.js"); 
    272244        loadScript(path+"/js/QuickCatalogSearch.js"); 
    273         loadScript("calendar/templates/default/js/over_fn_exmail.js"); 
     245        loadScript("calendar/templates/classic/js/over_fn_exmail.js"); 
    274246        if(!contacts) 
    275247                cExecute (path+'.db_functions.get_dropdown_contacts', save_contacts); 
Note: See TracChangeset for help on using the changeset viewer.