Changeset 7148


Ignore:
Timestamp:
09/03/12 16:43:47 (12 years ago)
Author:
angelo
Message:

Ticket #3089 - Problema com os participantes externos na criacao de compromisso

File:
1 edited

Legend:

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

    r7147 r7148  
    1818} 
    1919         
    20 // Verifica versão do Firefox 
     20// Verifica versão do Firefox 
    2121var agt = navigator.userAgent.toLowerCase(); 
    2222var is_firefox_0 = agt.indexOf('firefox/1.0') != -1 && agt.indexOf('firefox/0.') ? true : false; 
     
    154154function submitValues(button){ 
    155155    loadScript("expressoMail1_2/js/common_functions.js"); 
    156         button.disabled = true; //Desabilita Botão para evitar varios clicks 
     156        button.disabled = true; //Desabilita Botão para evitar varios clicks 
    157157 
    158158        var typeField = document.getElementById('cal[type]'); 
     
    177177         
    178178        if( !isChecked && !document.getElementsByName( "cal[rpt_use_end]" )[0].checked && !(document.getElementsByName( "cal[recur_type]" )[0].value === "0")){ 
    179             alert("Agendamentos recorrentes precisam de data final da repetição"); 
     179            alert("Agendamentos recorrentes precisam de data final da repetição"); 
    180180            button.disabled = false; 
    181181            return false; 
     
    190190        if(document.getElementsByName( "cal[rpt_use_end]" )[0].checked){ 
    191191                if(!validate_date_order(document.getElementById('start[str]').value, document.getElementById('recur_enddate[str]').value)){ 
    192                         alert("A data final não pode ser menor que a data inicial."); 
     192                        alert("A data final não pode ser menor que a data inicial."); 
    193193                        button.disabled = false; 
    194194                        return false; 
     
    197197        //Valida data inicio nao nula 
    198198        if(document.getElementById('start[str]').value == ''){ 
    199                 alert("Necessario preencher a data de início."); 
     199                alert("Necessario preencher a data de início."); 
    200200                document.getElementById('start[str]').focus(); 
    201201                button.disabled = false; 
     
    207207                        document.getElementById('start[str]').value = ''; 
    208208                        document.getElementById('start[str]').focus(); 
    209                         alert("A data de início não é válida."); 
     209                        alert("A data de início não é válida."); 
    210210                        button.disabled = false; 
    211211                        return false; 
     
    217217                        document.getElementById('end[str]').value = ''; 
    218218                        document.getElementById('end[str]').focus(); 
    219                         alert("A data de término não é válida."); 
     219                        alert("A data de término não é válida."); 
    220220                        button.disabled = false; 
    221221                        return false; 
     
    227227                document.getElementById('start_hour').value = ''; 
    228228                document.getElementById('start_hour').focus(); 
    229                 alert("A hora de início deve ser números."); 
     229                alert("A hora de início deve ser números."); 
    230230                button.disabled = false; 
    231231                return false; 
     
    235235                document.getElementById('start_minute').value = ''; 
    236236                document.getElementById('start_minute').focus(); 
    237                 alert("A hora de início deve ser números."); 
     237                alert("A hora de início deve ser números."); 
    238238                button.disabled = false; 
    239239                return false; 
     
    243243                document.getElementById('end_hour').value = ''; 
    244244                document.getElementById('end_hour').focus(); 
    245                 alert("A hora do término deve ser números."); 
     245                alert("A hora do término deve ser números."); 
    246246                button.disabled = false; 
    247247                return false; 
     
    251251                document.getElementById('end_minute').value = ''; 
    252252                document.getElementById('end_minute').focus(); 
    253                 alert("A hora do término deve ser números."); 
     253                alert("A hora do término deve ser números."); 
    254254                button.disabled = false; 
    255255                return false; 
     
    265265                        document.getElementById('end_minute').value = ''; 
    266266                        document.getElementById('start_hour').focus(); 
    267                         alert("A hora final não pode ser menor que a hora inicial."); 
     267                        alert("A hora final não pode ser menor que a hora inicial."); 
    268268                        button.disabled = false; 
    269269                        return false; 
     
    276276                                document.getElementById('end_minute').value = ''; 
    277277                                document.getElementById('start_hour').focus(); 
    278                                 alert("A hora final não pode ser menor que a hora inicial."); 
     278                                alert("A hora final não pode ser menor que a hora inicial."); 
    279279                                button.disabled = false; 
    280280                                return false; 
     
    328328                        }                
    329329                         
    330                         //FECHA OS CONTATOS DINï¿œMICOS 
     330                        //FECHA OS CONTATOS DINÂMICOS 
    331331                        if( (e.keyCode == 27) && $( this ).data( "catcomplete" ).menu.active ){ 
    332332                                   e.stopPropagation(); 
     
    405405        var newList = ""; 
    406406        if (mailList.val().indexOf(email) != -1){ 
    407                 $.Zebra_Dialog('O email <b>'+ email +'</b> já consta na lista!'); 
     407                $.Zebra_Dialog('O email <b>'+ email +'</b> já consta na lista!'); 
    408408        } 
    409409        if (mailList.val().indexOf(',') > 0){ 
     
    491491                        }, 
    492492                         
    493                         //EVENTO AO SELECIONAR UM CONTATO DINï¿œMICO 
     493                        //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 
    494494                        select: function( event, ui ) {                  
    495495                                event.preventDefault(); 
     
    503503                }) 
    504504                 
    505                 //MONTAGEM DA LISTA DE CONTATOS DINï¿œMICOS DO AUTO COMPLETE 
     505                //MONTAGEM DA LISTA DE CONTATOS DINÂMICOS DO AUTO COMPLETE 
    506506                .data( "catcomplete" )._renderItem = function( ul, item ) { 
    507507                        if($(ul).find("li").length < 50){ 
    508508                                var autocomplete = $(this)[0].element; 
    509                                 //cï¿œlculo dinï¿œmico da largura da lista 
     509                                //cálculo dinâmico da largura da lista 
    510510                                var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.email ? item.email.length : 20 ))); 
    511511                                width = width*5 + (is_ie ? 170 : 200) + 16; 
     
    527527                                                        'type':     'question', 
    528528                                                        'custom_class': (is_ie ? 'configure-zebra-dialog' : ''), 
    529                                                         'title':    'Atenção', 
    530                                                         'buttons': ['Sim','Não'],               
     529                                                        'title':    'Atenção', 
     530                                                        'buttons': ['Sim','Não'],                
    531531                                                        'overlay_opacity': '0.5', 
    532532                                                        'onClose':  function(caption) { 
     
    536536                                                                        updateDynamicContact(); 
    537537                                                                        cache = new Array(); 
    538                                                                 }else if(caption == 'Não'){ 
     538                                                                }else if(caption == 'Não'){ 
    539539                                                                        $(focusIn).focus(); 
    540540                                                                } 
     
    604604function fixBugInnerSelect(objeto,innerHTML){ 
    605605/****** 
    606 * select_innerHTML - altera o innerHTML de um select independente se é FF ou IE 
    607 * Corrige o problema de não ser possível usar o innerHTML no IE corretamente 
     606* select_innerHTML - altera o innerHTML de um select independente se é FF ou IE 
     607* Corrige o problema de não ser possível usar o innerHTML no IE corretamente 
    608608* Veja o problema em: http://support.microsoft.com/default.aspx?scid=kb;en-us;276228 
    609 * Use a vontade mas coloque meu nome nos créditos. Dúvidas, me mande um email. 
    610 * Versão: 1.0 - 06/04/2006 
    611 * Autor: Micox - Náiron José C. Guimarães - micoxjcg@yahoo.com.br 
     609* Use a vontade mas coloque meu nome nos créditos. Dúvidas, me mande um email. 
     610* Versão: 1.0 - 06/04/2006 
     611* Autor: Micox - Náiron José C. Guimarães - micoxjcg@yahoo.com.br 
    612612* Parametros: 
    613613* objeto(tipo object): o select a ser alterado 
     
    621621    selTemp = document.getElementById("micoxselect1") 
    622622    selTemp.style.display="none" 
    623     if(innerHTML.toLowerCase().indexOf("<option")<0){//se não é option eu converto 
     623    if(innerHTML.toLowerCase().indexOf("<option")<0){//se não é option eu converto 
    624624        innerHTML = "<option>" + innerHTML + "</option>" 
    625625    } 
Note: See TracChangeset for help on using the changeset viewer.