Changeset 6296 for sandbox/2.4.1-1/prototype
- Timestamp:
- 05/24/12 16:42:19 (12 years ago)
- Location:
- sandbox/2.4.1-1/prototype/modules/mail
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-1/prototype/modules/mail/css/followupflag.css
r6280 r6296 255 255 .confirm-alarm { 256 256 float:right; 257 margin: 5px;258 257 } 259 258 .freeow .gray h2 { -
sandbox/2.4.1-1/prototype/modules/mail/js/followupflag.js
r6285 r6296 461 461 462 462 /** 463 * constrói as duas possíveis janelade alerta, utilizando o mesmo template463 * constrói as três possíveis janelas de alerta, utilizando o mesmo template 464 464 * para o parametro alert_type, espera-se vazio, followupflagAlarms ou filtersAlarms 465 465 * vazio: quando serão carregadas todas as modais de alarmes … … 479 479 plural:"You have %1 undone messages today:" 480 480 }, 481 title: 'Concluídas',481 title: get_lang('Done'), 482 482 enable: ($.cookie("fadeCompleted") != (new Date).toString("dd/MM/yyyy")) 483 483 }, … … 488 488 plural:'You have %1 follow ups due for today:' 489 489 }, 490 title: 'Sinalizadas',490 title: get_lang('Follow ups'), 491 491 enable: ($.cookie("fadeAlarm") != (new Date).toString("dd/MM/yyyy")) 492 492 } … … 495 495 // carregar modal de filtros 496 496 case 'filtersAlarms': 497 $('. listFilters').remove();497 $('.filtersDeadline').remove(); 498 498 var toIterate = [ 499 499 { 500 500 attrDeadline: 'filtersDeadline', 501 501 caption: { 502 singular:' Você tem uma mensagem arquivada:',503 plural:' Você tem %1 mensagens arquivadas:'502 singular:'You have an archived message:', 503 plural:'You have %1 messages archived:' 504 504 }, 505 title: 'Filtro por remetente',505 title: get_lang('Filter by sender'), 506 506 enable: ($.cookie("fadeFilterAlarm") != (new Date).toString("dd/MM/yyyy")) 507 507 } … … 515 515 attrDeadline: 'filtersDeadline', 516 516 caption: { 517 singular:' Você tem uma mensagem arquivada:',518 plural:' Você tem %1 mensagens arquivadas:'517 singular:'You have an archived message:', 518 plural:'You have %1 messages archived:' 519 519 }, 520 title: 'Filtro por remetente',520 title: get_lang('Filter by sender'), 521 521 enable: ($.cookie("fadeFilterAlarm") != (new Date).toString("dd/MM/yyyy")) 522 522 }, … … 526 526 plural:"You have %1 undone messages today:" 527 527 }, 528 title: 'Concluídas',528 title: get_lang('Done'), 529 529 enable: ($.cookie("fadeCompleted") != (new Date).toString("dd/MM/yyyy")) 530 530 }, … … 535 535 plural:'You have %1 follow ups due for today:' 536 536 }, 537 title: 'Sinalizadas',537 title: get_lang('Follow ups'), 538 538 enable: ($.cookie("fadeAlarm") != (new Date).toString("dd/MM/yyyy")) 539 539 } … … 553 553 for(var i=0; i<alarmInRange.length; i++){ 554 554 if(alarmInRange[i].isDone == 1){ 555 alarmInRange.splice(i,1);556 i--;555 alarmInRange.splice(i,1); 556 i--; 557 557 } 558 558 } … … 610 610 611 611 if(alarmInRange.length > 0){ 612 // monta o subtitulo da modal 612 613 var caption = (alarmInRange.length == 1) ? 613 614 get_lang(it.caption.singular): 614 615 get_lang(it.caption.plural, alarmInRange.length); 615 616 // monta o array de dados a ser passado para o template 616 617 var data = { 617 618 alarmInRange : messages_alarm, 618 619 caption: caption, 619 620 }; 621 // tipo de modal a ser exibida 620 622 var type_alarm = it.attrDeadline; 623 //função chamada ao clicar no botão Ok da modal 621 624 var ok_function = function(event, type, type_cookie){ 622 625 if($(event.target).parents('.'+type).find('[name="stopAlert"]').is(':checked')){
Note: See TracChangeset
for help on using the changeset viewer.