Changeset 3036


Ignore:
Timestamp:
07/12/10 16:25:35 (10 years ago)
Author:
amuller
Message:

Ticket #1038 - Alterando a forma de montagem das mensagens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/draw_api.js

    r3035 r3036  
    12551255        var option_hide_more = document.createElement("SPAN"); 
    12561256        option_hide_more.className = 'message_options'; 
     1257        option_hide_more.onmouseover=function () { this.className='message_options_active'; }; 
     1258        option_hide_more.onmouseout=function () { this.className='message_options' }; 
    12571259        options.align = 'right'; 
    12581260        option_hide_more.value = 'more_options'; 
     
    12741276        option_mark.align = "left"; 
    12751277        option_mark.width = "50%"; 
    1276           var option_mark_as = '<span>'+get_lang("Mark as")+'</span>: '; 
    1277           var option_mark_as_unseen = '<span class="message_options" onclick="changeLinkState(this,\'seen\'); set_messages_flag(\'unseen\','+folder_id+'); write_msg(\''+get_lang('Message marked as ')+get_lang("Unseen")+'.\');">'+get_lang("Unseen")+'</span>, '; 
    1278  
    1279           if (info_msg.Flagged == "F") 
    1280                           var option_mark_important = '<span class="message_options" onclick="changeLinkState(this,\'important\'); set_messages_flag(\'unflagged\','+folder_id+');write_msg(\''+get_lang('Message marked as ')+get_lang("Normal")+'.\');">'+get_lang("Normal")+'</span>'; 
    1281           else 
    1282                           var option_mark_important = '<span class="message_options" onclick="changeLinkState(this,\'normal\');set_messages_flag(\'flagged\','+folder_id+');write_msg(\''+get_lang('Message marked as ')+get_lang("Important")+'.\');">'+get_lang("Important")+'</span>'; 
    1283           option_mark.innerHTML = option_mark_as+option_mark_as_unseen+option_mark_important; 
     1278        var option_mark_as = '<span>'+get_lang("Mark as")+'</span>: '; 
     1279        var option_mark_as_unseen = document.createElement("SPAN"); 
     1280        option_mark_as_unseen.className = "message_options"; 
     1281        option_mark_as_unseen.onclick = function () { changeLinkState(this,'seen'); 
     1282                set_messages_flag('unseen',folder_id); 
     1283                write_msg(get_lang('Message marked as ')+get_lang("Unseen")); 
     1284        }; 
     1285        option_mark_as_unseen.onmouseover=function () { this.className='message_options_active'; }; 
     1286        option_mark_as_unseen.onmouseout=function () { this.className='message_options' }; 
     1287        option_mark_as_unseen.innerHTML = get_lang("Unseen"); 
     1288 
     1289        var option_mark_important = document.createElement("SPAN"); 
     1290        option_mark_important.className = 'message_options'; 
     1291        option_mark_important.style.paddingLeft = "10px"; 
     1292        option_mark_important.onmouseover=function () { this.className='message_options_active'; }; 
     1293        option_mark_important.onmouseout=function () { this.className='message_options' }; 
     1294 
     1295        if (info_msg.Flagged == "F"){ 
     1296                option_mark_important.onclick = function() { changeLinkState(this,'important'); 
     1297                        set_messages_flag('unflagged',folder_id); 
     1298                        write_msg(get_lang('Message marked as ')+get_lang("Normal")); 
     1299                }; 
     1300                option_mark_important.innerHTML = get_lang("Normal"); 
     1301        } 
     1302        else{ 
     1303                option_mark_important.onclick = function() { changeLinkState(this,'normal'); 
     1304                        set_messages_flag('flagged',folder_id); 
     1305                        write_msg(get_lang('Message marked as ')+get_lang("Important")); 
     1306                }; 
     1307                option_mark_important.innerHTML = get_lang("Important"); 
     1308        } 
     1309        option_mark.innerHTML = option_mark_as; 
     1310        option_mark.appendChild(option_mark_as_unseen); 
     1311        option_mark.appendChild(option_mark_important); 
    12841312        option_hide_more.innerHTML = get_lang('Show details'); 
    12851313        options.appendChild(option_hide_more); 
     
    12911319        var space2 = document.createElement("SPAN"); 
    12921320        space2.innerHTML = '&nbsp;|&nbsp;'; 
    1293         var space3 = document.createElement("SPAN"); 
    1294         space3.innerHTML = '&nbsp;|&nbsp;'; 
    1295         var space4 = document.createElement("SPAN"); 
    1296         space4.innerHTML = '&nbsp;|&nbsp;'; 
    12971321 
    12981322        var option_forward = document.createElement("SPAN"); 
     
    13001324        option_forward.className = 'message_options'; 
    13011325        option_forward.onclick = function(){new_message('forward', ID);}; 
     1326        option_forward.onmouseover=function () { this.className='message_options_active'; }; 
     1327        option_forward.onmouseout=function () { this.className='message_options' }; 
    13021328        option_forward.innerHTML = get_lang('Forward'); 
    13031329        options.appendChild(space1); 
     
    13081334        option_reply.onclick = function(){new_message('reply_with_history', ID);}; 
    13091335        option_reply.innerHTML = get_lang('Reply'); 
     1336        option_reply.onmouseover=function () { this.className='message_options_active'; }; 
     1337        option_reply.onmouseout=function () { this.className='message_options' }; 
     1338 
    13101339        options.appendChild(space2); 
    13111340 
Note: See TracChangeset for help on using the changeset viewer.