Changeset 7614


Ignore:
Timestamp:
12/06/12 11:33:23 (7 years ago)
Author:
marcieli
Message:

Ticket #1444 - Implementada melhoria para salvar ultima acao de responder mensagens realizada pelo usuario.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r7612 r7614  
    28372837        option_reply.id = 'msg_opt_reply_'+ID; 
    28382838        option_reply.className = 'message_options'; 
    2839         option_reply.onclick = function(){new_message('reply_with_history', ID);}; 
     2839        option_reply.onclick = function(){ 
     2840                 
     2841                new_message(($.cookie("option_reply")) ? $.cookie("option_reply") : "reply_with_history", ID); 
     2842                 
     2843        }; 
    28402844        option_reply.innerHTML = get_lang('Reply'); 
    28412845        option_reply.onmouseover=function () {this.className='message_options_active';}; 
     
    29572961                var option_export = '<span onclick="proxy_mensagens.export_all_messages()" onmouseover="this.className=\'reply_options_active\'" onmouseout="this.className=\'reply_options\'" class="reply_options">'+get_lang("Export")+'</span> | '; 
    29582962 
    2959                 option_reply_to_all__title = (preferences.use_shortcuts == '1') ? get_lang('Shortcut: %1', 'T') : ''; 
    2960                 var option_reply_to_all = '<span onmouseover="this.className=\'reply_options_active\'" onmouseout="this.className=\'reply_options\'" class="reply_options" onclick="new_message(\'reply_to_all_with_history\',\''+ID+'\');" title="'+option_reply_to_all__title+'">'+get_lang("Reply to all")+'</span> | '; 
    2961         var option_reply_without_history = '<span onmouseover="this.className=\'reply_options_active\'" onmouseout="this.className=\'reply_options\'" class="reply_options" onclick=new_message("reply_without_history","'+ID+'");>'+get_lang("Reply without history")+'</span> | '; 
    2962                 var option_reply_to_all_without_history = '<span onmouseover="this.className=\'reply_options_active\'" onmouseout="this.className=\'reply_options\'" class="reply_options" onclick=new_message("reply_to_all_without_history","'+ID+'");>'+get_lang("Reply to all without history")+'</span>  | '; 
    2963  
     2963                // CRIAÇÃO DE OPÇÕES DE RESPONDER MENSAGEM 
     2964                var space_replay1 = document.createElement('SPAN'); 
     2965                space_replay1.innerHTML = '&nbsp;|&nbsp;'; 
     2966                 
     2967                var space_replay2 = document.createElement('SPAN'); 
     2968                space_replay2.innerHTML = '&nbsp;|&nbsp;'; 
     2969                 
     2970                var space_replay3 = document.createElement('SPAN'); 
     2971                space_replay3.innerHTML = '&nbsp;|&nbsp;'; 
     2972                 
     2973                // RESPONDER A TODOS 
     2974                var option_reply_to_all = document.createElement('SPAN'); 
     2975                option_reply_to_all.onmouseover = function () {this.className = "reply_options_active";}; 
     2976                option_reply_to_all.onmouseout = function () {this.className= "reply_options";}; 
     2977                option_reply_to_all.className = "reply_options"; 
     2978                option_reply_to_all.onclick = function(){ 
     2979                        new_message('reply_to_all_with_history', ID); 
     2980                        $.cookie ("option_reply", "reply_to_all_with_history", { expires: 5}); 
     2981                }; 
     2982                option_reply_to_all.title = (preferences.use_shortcuts == '1') ? get_lang('Shortcut: %1', 'T') : ''; 
     2983                option_reply_to_all.innerHTML = get_lang("Reply to all"); 
     2984                 
     2985                // RESPONDER SEM HISTORICO 
     2986                var option_reply_without_history = document.createElement('SPAN'); 
     2987                option_reply_without_history.onmouseover = function () {this.className = "reply_options_active";}; 
     2988                option_reply_without_history.onmouseout = function () {this.className= "reply_options";}; 
     2989                option_reply_without_history.className = "reply_options"; 
     2990                option_reply_without_history.onclick = function(){ 
     2991                        new_message('reply_without_history', ID); 
     2992                        $.cookie ("option_reply", "reply_without_history", { expires: 5}); 
     2993                }; 
     2994                option_reply_without_history.innerHTML = get_lang("Reply without history"); 
     2995                 
     2996                // RESPONDER A TODOS SEM HISTORICO 
     2997                var option_reply_to_all_without_history = document.createElement('SPAN'); 
     2998                option_reply_to_all_without_history.onmouseover = function () {this.className = "reply_options_active";}; 
     2999                option_reply_to_all_without_history.onmouseout = function () {this.className= "reply_options";}; 
     3000                option_reply_to_all_without_history.className = "reply_options"; 
     3001                option_reply_to_all_without_history.onclick = function(){ 
     3002                        new_message('reply_to_all_without_history', ID); 
     3003                        $.cookie ("option_reply", "reply_to_all_without_history", { expires: 5}); 
     3004                }; 
     3005                option_reply_to_all_without_history.innerHTML = get_lang("Reply to all without history"); 
     3006                 
     3007                // RESPONDER COM HISTÓRICO 
     3008                var option_reply_with_history = document.createElement('SPAN'); 
     3009                option_reply_with_history.onmouseover = function () {this.className = "reply_options_active";}; 
     3010                option_reply_with_history.onmouseout = function () {this.className= "reply_options";}; 
     3011                option_reply_with_history.className = "reply_options"; 
     3012                option_reply_with_history.onclick = function(){ 
     3013                        new_message('reply_with_history', ID); 
     3014                        $.cookie ("option_reply", "reply_with_history", { expires: 5}); 
     3015                }; 
     3016                option_reply_with_history.innerHTML = get_lang("Reply with history"); 
     3017                 
     3018                // APENDAR OPÇÕES DE RESPONDER 
     3019                div_other_options.appendChild(option_reply_to_all); 
     3020                div_other_options.appendChild(space_replay1); 
     3021                div_other_options.appendChild(option_reply_to_all_without_history); 
     3022                div_other_options.appendChild(space_replay2); 
     3023                div_other_options.appendChild(option_reply_with_history); 
     3024                div_other_options.appendChild(space_replay3); 
     3025                div_other_options.appendChild(option_reply_without_history); 
     3026 
     3027                 
     3028                 
    29643029                var report_error        = '<span onmouseover="this.className=\'reply_options_active\'" onmouseout="this.className=\'reply_options\'" class="reply_options" onclick=reports_window("'+currentTab+'");>'+get_lang("Report error")+'</span> | ';  
    29653030 
    29663031                div_other_more_options.innerHTML += option_move + option_print + option_export + block_user +  report_error; 
    2967                  
    2968                 div_other_options.innerHTML += option_reply_without_history + option_reply_to_all_without_history + option_reply_to_all; 
     3032 
     3033                //div_other_options.innerHTML += option_reply_without_history + option_reply_to_all_without_history + option_reply_to_all; 
    29693034        if (use_spam_filter) { 
    29703035                        if(info_msg.msg_folder == 'INBOX'+cyrus_delimiter+'Spam' || (info_msg.msg_folder.match(/^user/) && info_msg.msg_folder.match(/Spam$/))){ 
Note: See TracChangeset for help on using the changeset viewer.