Changeset 8232 for branches/2.5/prototype/modules/calendar/js/init.js
- Timestamp:
- 10/08/13 16:20:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/prototype/modules/calendar/js/init.js
r8054 r8232 317 317 axisFormat: User.preferences.hourFormat, 318 318 eventSources: Calendar.sources, 319 319 320 320 header: { 321 321 left: 'prev,next today,agendaWeek,' + ((User.preferences.defaultCalView == "basicDay") ? "basicDay" : "agendaDay"), … … 353 353 }, 354 354 355 356 355 eventRender: function( event, element, view ){ 357 356 $('#calendar td.fc-year-have-event').removeClass('fc-year-have-event'); 358 357 359 358 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)); 377 395 }, 378 396 … … 477 495 'type': 'question', 478 496 'overlay_opacity': '0.5', 479 'custom_class': 'occurrence-zebra', 497 'custom_class': 'occurrence-zebra', 480 498 'width': 427, 481 499 'buttons': ['Editar todas ocorrências', 'Editar essa ocorrência', 'Cancelar'], 482 500 'onClose': function(clicked) { 483 501 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); 487 505 488 506 }else if (clicked == 'Editar essa ocorrência'){ … … 493 511 */ 494 512 var repeat = mount_exception(evt.id, evt.occurrence); 495 513 496 514 $('.calendar-copy-move input[name="typeEvent"]').val("3"); 497 515 … … 513 531 break; 514 532 case 3: 533 DataLayer.remove('taskToActivity', false);//Limpa o cache 515 534 var activity = getSchedulable(evt.id, ''); 516 535 activity.group = evt.calendar; … … 565 584 566 585 if( $.browser.msie ){ 567 568 $('#divAppbox').css('width', $(window).width());586 //$('#divAppbox').css('width', $(window).width()); 587 $('#divAppbox').css({'height':'600px','max-width':'100%'}); 569 588 } 570 589
Note: See TracChangeset
for help on using the changeset viewer.