Ignore:
Timestamp:
09/26/12 19:03:11 (12 years ago)
Author:
marcosw
Message:

Ticket #3088 - Adicionado funcionalidade parcial flags para mensagens locais

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.0-expresso1/expressoMail1_2/js/draw_api.js

    r7227 r7320  
    26802680        var option_mark_as_unseen = document.createElement("SPAN"); 
    26812681                option_mark_as_unseen.className = "reply_options"; 
    2682         option_mark_as_unseen.onclick = function () {changeLinkState(this,'seen'); 
    2683                 proxy_mensagens.proxy_set_message_flag(folder_id,'unseen'); 
     2682            option_mark_as_unseen.onclick = function () {changeLinkState(this,'seen'); 
     2683 
     2684        //Marcosw inicio - mudança no parametro passado 
     2685                proxy_mensagens.proxy_set_message_flag(folder_id,'unseen',null,ID.split("_r_")[0]); 
     2686        //Marcosw fim 
     2687 
    26842688                write_msg(get_lang('Message marked as ')+get_lang("Unseen")); 
    26852689        }; 
     
    26962700                option_mark_important.onclick = function() { 
    26972701                        var _this = this; 
    2698                         proxy_mensagens.proxy_set_message_flag(folder_id,'unflagged', function(success){ 
    2699                                 if (success) { 
    2700                                         changeLinkState(_this, 'important'); 
    2701                                         write_msg(get_lang('Message marked as ') + get_lang("Normal")); 
    2702                                 } 
    2703                         } ); 
     2702 
     2703            //Marcosw inicio - removido função anonima para evitar inconsistência 
     2704            changeLinkState(_this, 'important'); 
     2705                        proxy_mensagens.proxy_set_message_flag(folder_id,'unflagged',null,ID.split("_r_")[0]); 
     2706            write_msg(get_lang('Message marked as ')+get_lang("Normal")); 
     2707            //Marcosw fim 
    27042708 
    27052709                }; 
    2706                 option_mark_important.innerHTML = get_lang("Normal"); 
     2710        option_mark_important.innerHTML = get_lang("Normal"); 
    27072711        } 
    27082712        else{ 
    2709                 option_mark_important.onclick = function() {changeLinkState(this,'normal'); 
    2710                         proxy_mensagens.proxy_set_message_flag(folder_id,'flagged'); 
     2713                option_mark_important.onclick = function() {changeLinkState(this,'normal',null,ID.substr(0, ID.length-2)); 
     2714 
     2715            //Marcosw inicio - mudança no parametro passado 
     2716                        proxy_mensagens.proxy_set_message_flag(folder_id,'flagged',null,ID.split("_r_")[0]); 
     2717            //Marcosw fim 
     2718 
    27112719                        write_msg(get_lang('Message marked as ')+get_lang("Important")); 
    27122720                }; 
Note: See TracChangeset for help on using the changeset viewer.