Changeset 5700


Ignore:
Timestamp:
03/12/12 09:54:54 (12 years ago)
Author:
thiago
Message:

Ticket #2486 - Fechamento de um alarme por 1 dia, estava fechando o concluido e o alarme juntos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/js/followupflag.js

    r5697 r5700  
    2929        } 
    3030} 
    31  
    32  
    3331 
    3432function init_followup(data){ 
     
    420418                        caption: {singular:'Você tem uma mensagem concluindo hoje:', plural:"Você tem %1 mensagens concluindo hoje:"}, 
    421419                        onOk: function(event){ 
    422                                 if($(event.target).parents('.followupflag-alarm').find('[name="stopAlert"]').is(':checked')){ 
     420                                if($(event.target).parents('.doneDeadline').find('[name="stopAlert"]').is(':checked')){ 
     421                                 
    423422                                        $.cookie("fadeCompleted", (new Date).toString("dd/MM/yyyy"), { expires: 1 }); 
    424423                                } 
     
    427426                }, 
    428427                { 
    429                         attrDeadline: 'alarmDeadline',  
     428                        attrDeadline: 'alarmDeadline', 
    430429                        caption: {singular:'Você tem uma mensagem sinalizada para hoje:', plural:'Você tem %1 mensagens sinalizadas para hoje:'}, 
    431430                        onOk: function(event){ 
    432                                 if($(event.target).parents('.followupflag-alarm').find('[name="stopAlert"]').is(':checked')){ 
     431                                if($(event.target).parents('.alarmDeadline').find('[name="stopAlert"]').is(':checked')){ 
    433432                                        $.cookie("fadeAlarm", (new Date).toString("dd/MM/yyyy"), { expires: 1 }); 
    434433                                } 
     
    465464                         */ 
    466465                        offsetHeight = !offsetHeight ? 35 : offsetHeight + 20 ; 
     466                         
    467467                        var dialog = new $.Zebra_Dialog(dialogText, { 
    468468                                'buttons':  ['Ok'], 
     
    470470                                'vcenter_short_message': false, 
    471471                                'position': ['right - 20', 'bottom - ' + offsetHeight.toString() ], 
    472                                 'custom_class': 'right-bottom followupflag-alarm', 
     472                                'custom_class': 'right-bottom followupflag-alarm '+ it.attrDeadline, 
    473473                        }).dialog; 
    474  
     474                         
    475475                        $(".ZebraDialog.followupflag-alarm .ZebraDialog_Button0").click(it.onOk); 
    476476                         
Note: See TracChangeset for help on using the changeset viewer.