Ignore:
Timestamp:
10/08/13 16:20:46 (11 years ago)
Author:
douglas
Message:

Ticket #0000 - Copiadas as alterações do Trunk. Versão final 2.5.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/prototype/modules/calendar/js/init.js

    r8054 r8232  
    317317                axisFormat: User.preferences.hourFormat, 
    318318                eventSources: Calendar.sources, 
    319  
     319                 
    320320                header: { 
    321321                        left: 'prev,next today,agendaWeek,' + ((User.preferences.defaultCalView == "basicDay") ? "basicDay" : "agendaDay"), 
     
    353353                }, 
    354354 
    355  
    356355        eventRender: function( event, element, view ){ 
    357356                    $('#calendar td.fc-year-have-event').removeClass('fc-year-have-event'); 
    358357 
    359358                        var img_icon = ""; 
    360   
    361             if( !!parseInt(event.unanswered)  ){  
    362   
    363                 img_icon = "mini-attention.png";  
    364   
    365             }else{  
    366   
    367                         if(event.type == 1) 
    368                                 img_icon = "mini-event.png"; 
    369                         if(event.type == 2) 
    370                                 img_icon = "mini-task.png"; 
    371                         if(event.type == 3) 
    372                                 img_icon = "mini-activity.png"; 
    373  
    374         } 
    375                  
    376             element.find(".fc-event-inner.fc-event-skin").prepend($('<img style="width: 11px; height: 13px;" class="" src="../prototype/modules/calendar/img/' + img_icon + '"></img>')); 
     359                        var status_ball = ""; //nome da imagem a ser inserida 
     360                        var status_img = ""; 
     361 
     362            if( !!parseInt(event.unanswered) && event.type == 1 ){ 
     363 
     364                img_icon = "mini-attention.png"; 
     365 
     366            }else{ 
     367 
     368                if(event.type == 1) 
     369                    img_icon = "mini-event.png"; 
     370                if(event.type == 2) 
     371                    img_icon = "mini-task.png"; 
     372                if(event.type == 3) 
     373                    img_icon = "mini-activity.png"; 
     374 
     375                //se for diferente de evento(type 1). 
     376                if(event.type != 1){ 
     377                    if(event.status == "1"){ 
     378                        status_ball = "gray.png"; 
     379                    }else if(event.status == "2"){ 
     380                        status_ball = "yellow.png"; 
     381                    }else if(event.status == "3"){ 
     382                        status_ball = "green.png"; 
     383                    }else if(event.status == "4"){ 
     384                        status_ball = "red.png"; 
     385                    } 
     386 
     387                    status_img = '<img style="width: 8px; height: 8px; margin-bottom: 2px;" src="../prototype/modules/calendar/img/' + status_ball + '"></img>'; 
     388                } 
     389 
     390            } 
     391 
     392 
     393                        //html que exibe a imagem do type e do status 
     394            element.find(".fc-event-inner.fc-event-skin").prepend($('<img style="width: 11px; height: 13px;" class="" src="../prototype/modules/calendar/img/' + img_icon + '"></img>' + status_img)); 
    377395                }, 
    378396 
     
    477495                                'type':     'question', 
    478496                                'overlay_opacity': '0.5', 
    479                                 'custom_class':  'occurrence-zebra',  
     497                                'custom_class':  'occurrence-zebra', 
    480498                                'width': 427, 
    481499                                'buttons':  ['Editar todas ocorrências', 'Editar essa ocorrência', 'Cancelar'], 
    482500                                'onClose':  function(clicked) { 
    483501                                    if(clicked == 'Editar todas ocorrências') { 
    484                                         var schedule = getSchedulable(evt.id, '');  
    485                                         schedule.calendar = evt.calendar;  
    486                                         eventDetails( schedule , true);  
     502                                        var schedule = getSchedulable(evt.id, ''); 
     503                                        schedule.calendar = evt.calendar; 
     504                                        eventDetails( schedule , true); 
    487505 
    488506                                    }else if (clicked == 'Editar essa ocorrência'){ 
     
    493511                                        */       
    494512                                        var repeat = mount_exception(evt.id, evt.occurrence); 
    495                                                                                            
     513 
    496514                                        $('.calendar-copy-move input[name="typeEvent"]').val("3"); 
    497515                                         
     
    513531                    break; 
    514532                case 3: 
     533                                        DataLayer.remove('taskToActivity', false);//Limpa o cache 
    515534                    var activity = getSchedulable(evt.id, ''); 
    516535                    activity.group = evt.calendar; 
     
    565584 
    566585    if( $.browser.msie ){ 
    567  
    568         $('#divAppbox').css('width', $(window).width()); 
     586        //$('#divAppbox').css('width', $(window).width()); 
     587        $('#divAppbox').css({'height':'600px','max-width':'100%'}); 
    569588    } 
    570589 
Note: See TracChangeset for help on using the changeset viewer.