Changeset 1291


Ignore:
Timestamp:
08/07/09 10:19:12 (15 years ago)
Author:
amuller
Message:

Ticket #485 - Correção das preferencias do EM

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/hook_settings.inc.php

    r1289 r1291  
    8989create_check_box('Show default view on main screen?','mainscreen_showmail','Show unread messages in your home page'); 
    9090create_check_box('Do you want to use remove attachments function?','remove_attachments_function','It allow you to remove attachments from messages'); 
    91 create_check_box('Do you want to use important flag in email editor?','enable_important_flag','It allow you to send emails with important flag, but you can receive unwanted messages with important flag'); 
     91create_check_box('Do you want to use important flag in email editor?','use_important_flag','It allow you to send emails with important flag, but you can receive unwanted messages with important flag'); 
    9292 
    9393//Use user folders from email 
  • trunk/expressoMail1_2/js/draw_api.js

    r1247 r1291  
    729729 
    730730                if ((headers_msgs.Unseen == 'U') || (headers_msgs.Recent == 'N')){ 
    731                         if ((headers_msgs.Flagged == 'F') || (headers_msgs.Importance.toLowerCase().indexOf("high")!=-1 && preferences.use_important_flag == 'True')) 
     731                        if ((headers_msgs.Flagged == 'F') || (headers_msgs.Importance.toLowerCase().indexOf("high")!=-1 && parseInt(preferences.use_important_flag))) 
    732732                                add_className(tr_element, 'flagged_msg'); 
    733733                        add_className(tr_element, 'tr_msg_unread'); 
    734734                } 
    735735                else{ 
    736                         if ((headers_msgs.Flagged == 'F') || (headers_msgs.Importance.toLowerCase().indexOf("high")!=-1 && preferences.use_important_flag == 'True')) 
     736                        if ((headers_msgs.Flagged == 'F') || (headers_msgs.Importance.toLowerCase().indexOf("high")!=-1 && parseInt(preferences.use_important_flag))) 
    737737                                add_className(tr_element,'flagged_msg'); 
    738738                } 
     
    825825                td_element23.id = "td_message_important_"+headers_msgs.msg_number; 
    826826 
    827                 if (headers_msgs.Flagged == 'F' || (headers_msgs.Importance.toLowerCase().indexOf("high") != -1 && preferences.use_important_flag == 'True')) 
     827                if (headers_msgs.Flagged == 'F' || (headers_msgs.Importance.toLowerCase().indexOf("high") != -1 && parseInt(preferences.use_important_flag))) 
    828828                { 
    829829                        td_element23.innerHTML = "<img src ='templates/"+template+"/images/important.gif' title='"+get_lang('Important')+"'>"; 
     
    16541654                        } 
    16551655                        var tr = document.createElement("TR"); 
    1656                         if(preferences.remove_attachments_function) 
     1656                        if(parseInt(preferences.remove_attachments_function)) 
    16571657                        { 
    16581658                                var del_attachments = document.createElement("A"); 
     
    22802280        tr5.appendChild(td_return_receipt); 
    22812281        tbody_message.appendChild(tr5); 
    2282         if (preferences.use_important_flag) 
     2282        if (parseInt(preferences.use_important_flag)) 
    22832283        { 
    22842284                var trn = document.createElement("TR"); 
Note: See TracChangeset for help on using the changeset viewer.