Ignore:
Timestamp:
10/07/09 16:34:46 (15 years ago)
Author:
eduardoalex
Message:

Ticket #681 - Criada a função para delegar evento

File:
1 edited

Legend:

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

    r1268 r1500  
    2121var agt = navigator.userAgent.toLowerCase(); 
    2222var is_firefox_0 = agt.indexOf('firefox/1.0') != -1 && agt.indexOf('firefox/0.') ? true : false; 
    23   
     23         
     24/* 
     25        Semelhante a função get_avaiable_users, porém trás apenas usuários, ignorando os grupos... 
     26*/ 
     27function get_available_only_users(path,context,type) { 
     28        var handler_get_available_users2 = function(data) 
     29        {        
     30                select_available_users = document.getElementById('user_list_in'); 
     31                 
     32                for(var i=0; i<select_available_users.options.length; i++){ 
     33                        select_available_users.options[i] = null; 
     34                        i--; 
     35                } 
     36                var options = '###'; 
     37                if (data) { 
     38                         
     39                        options += '<option  value="-1" disabled>------------------- '+document.getElementById("txt_users").value+' ------------------ </option>' + data; 
     40                         
     41                        if(is_firefox_0) 
     42                                fixBugInnerSelect(select_available_users,options); 
     43                        else 
     44                                select_available_users.innerHTML = options; 
     45 
     46                        select_available_users.outerHTML = select_available_users.outerHTML; 
     47                        select_available_users.disabled = false; 
     48                        select_available_users_clone = document.getElementById('user_list_in').cloneNode(true); 
     49                        document.getElementById('cal_input_searchUser').value = ''; 
     50                } 
     51        }        
     52 
     53        document.getElementById('combo_org').value = context; 
     54        cExecute (path+'.ldap_functions.get_available_users2&valueAsUidNum=1&context='+context+'&type='+type, handler_get_available_users2);     
     55} 
     56 
    2457function get_available_users(filter,autoSearch) 
    2558//function get_available_users(path,context,type) 
     
    389422        } 
    390423}; 
     424 
Note: See TracChangeset for help on using the changeset viewer.