Changeset 4976 for branches/2.2


Ignore:
Timestamp:
08/22/11 11:50:40 (13 years ago)
Author:
niltonneto
Message:

Ticket #2233 - Corrigido checkbox marcar como importante para seguir as prefs.

Location:
branches/2.2/mobile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.ui_mobilemail.inc.php

    r4633 r4976  
    487487                function print_mails_list($messages,$print_checkbox=false) 
    488488                { 
    489                         $flagImportant = intval($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_important_flag']); 
    490                      
    491                         $functions = $this->common; 
     489            $functions = $this->common; 
    492490                        $p = $this->template; 
    493491                        $p->set_file( array( 'mobilemail_t' => 'mails_list.tpl' ) ); 
     
    524522                                                $flag="email-lido "; 
    525523                                         
    526                                         if( $message["Flagged"]==="F" && $flagImportant == 1 ) 
     524                                        if( $message["Flagged"]==="F" ) 
    527525                                                $flag.="email-importante"; 
    528526                                         
     
    691689                function new_msg($params) 
    692690                { 
     691                        $flagImportant = intval($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_important_flag']); 
    693692                        $this->template->set_file(array('new_msg_t' => 'new_msg.tpl')); 
    694693                        $this->template->set_block('new_msg_t', 'page'); 
     
    704703                        $this->template->set_var('lang_cc', lang("cc")); 
    705704                        $this->template->set_var('lang_subject', lang("Subject")); 
     705                        $this->template->set_var('visible_important', ( ($flagImportant == 1 ) ? "block" : "none" ) ); 
    706706                        $this->template->set_var('lang_mark_as_important', lang("mark as important")); 
    707707                        $this->template->set_var('lang_read_confirmation', lang("read confirmation")); 
  • branches/2.2/mobile/templates/default/new_msg.tpl

    r4046 r4976  
    6161        <div id="corpo_mensagem" class="limpar_div" style="background:#EFF8FB; display:table; width:100%" > 
    6262                <div id="text_area"><textarea id="body" wrap="virtual" name="body" cols="5" rows="5">{body_value}</textarea></div> 
    63                 <div class="limpar_div">&nbsp;<input type="checkbox" name="check_important" {check_important} />{lang_mark_as_important}</div> 
     63                <div class="limpar_div" style="display:{visible_important} !important;">&nbsp;<input type="checkbox" name="check_important" {check_important} />{lang_mark_as_important}</div> 
    6464                <div class="limpar_div">&nbsp;<input type="checkbox" name="check_read_confirmation" {check_read_confirmation} />{lang_read_confirmation}</div> 
    6565                <div class="limpar_div" style="display:{show_check_add_history}">&nbsp;<input type="checkbox" name="check_add_history" {check_add_history} />{lang_add_history}</div> 
Note: See TracChangeset for help on using the changeset viewer.