Changeset 336


Ignore:
Timestamp:
06/25/08 14:13:18 (16 years ago)
Author:
niltonneto
Message:

Valores das variáveis do array preferences são booleanos (0 ou 1), mas
no, mas no javascript, as condições devem ser feitas usando parseInt() ou
como strings "0" e "1".

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r334 r336  
    6262                'mainscreen_showmail'                           => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['mainscreen_showmail'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['mainscreen_showmail'] : "0", 
    6363                'signature'                                             => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature'], 
    64                 'use_signature'                                         => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature'], 
     64                'use_signature'                                         => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature'] : "0", 
    6565                        'hide_folders'                                          => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['hide_folders'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['hide_folders'] : "0",                  
    6666                'save_in_folder'                                        => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'] : "-1", 
  • trunk/expressoMail1_2/js/main.js

    r325 r336  
    2020                        cExecute ("$this.imap_functions.automatic_trash_cleanness&before_date="+preferences.delete_trash_messages_after_n_days+"&cyrus_delimiter="+cyrus_delimiter, handler_automatic_trash_cleanness); 
    2121 
    22                 if(preferences.outoffice) 
     22                if(preferences.outoffice == "1") 
    2323                        write_msg(get_lang("Attention, you are in out of office mode."), true); 
    2424                ConstructMenuTools(); 
     
    512512                        body.contentWindow.document.open(); 
    513513                        // Insert the signature automaticaly at message body if use_signature preference is set 
    514                         if (preferences.use_signature){  
     514                        if (preferences.use_signature == "1"){  
    515515                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>"); 
    516516                        } 
     
    541541                        body.contentWindow.document.open(); 
    542542                        // Insert the signature automaticaly at message body if use_signature preference is set 
    543                         if (preferences.use_signature) { 
     543                        if (preferences.use_signature == "1") { 
    544544                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>" + block_quoted_body + "</body></html>"); 
    545545                        } 
     
    586586                        body.contentWindow.document.open(); 
    587587                        // Insert the signature automaticaly at message body if use_signature preference is set 
    588                         if (preferences.use_signature) { 
     588                        if (preferences.use_signature == "1") { 
    589589                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>"); 
    590590                        } 
     
    631631                        body.contentWindow.document.open(); 
    632632                        // Insert the signature automaticaly at message body if use_signature preference is set 
    633                         if (preferences.use_signature) { 
     633                        if (preferences.use_signature == "1") { 
    634634                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>" + block_quoted_body + "</body></html>"); 
    635635                        } 
     
    679679                        body.contentWindow.document.open(); 
    680680                        // Insert the signature automaticaly at message body if use_signature preference is set 
    681                         if (preferences.use_signature) { 
     681                        if (preferences.use_signature == "1") { 
    682682                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>" + make_forward_body(data.body, data.to, data.date, data.subject, data.to_all, data.cc) + "</body></html>"); 
    683683                        } 
     
    712712                        body.contentWindow.document.open(); 
    713713                        // Insert the signature automaticaly at message body if use_signature preference is set 
    714                         if (preferences.use_signature) { 
     714                        if (preferences.use_signature == "1") { 
    715715                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>"); 
    716716                        } 
Note: See TracChangeset for help on using the changeset viewer.