Changeset 124


Ignore:
Timestamp:
12/11/07 16:43:48 (16 years ago)
Author:
niltonneto
Message:

Nova funcionalidade: Teclas de Atalho

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.db_functions.inc.php

    r27 r124  
    198198                                $new_prefe['font_size'] = $tmp; 
    199199                        } 
     200                        if($key == 11){ 
     201                                $new_prefe['use_shortcuts'] = $tmp; 
     202                        } 
    200203                } 
    201204                 
  • trunk/expressoMail1_2/index.php

    r118 r124  
    124124        if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts']) 
    125125        { 
    126                 echo $obj -> getFilesJs("js/shortcut_pack.js", $GLOBALS['phpgw_info']['flags']['update_version']); 
     126                echo $obj -> getFilesJs("js/shortcut.js", $GLOBALS['phpgw_info']['flags']['update_version']); 
    127127        } 
    128128 
  • trunk/expressoMail1_2/preferences.php

    r83 r124  
    4848                        $GLOBALS['phpgw']->template->set_var('checked_mainscreen_showmail',''); 
    4949 
     50                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts']) 
     51                        $GLOBALS['phpgw']->template->set_var('checked_shortcuts','checked'); 
     52                else 
     53                        $GLOBALS['phpgw']->template->set_var('checked_shortcuts',''); 
     54 
    5055                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature']) 
    5156                        $GLOBALS['phpgw']->template->set_var('text_signature',$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature']); 
     
    99104                else 
    100105                        $GLOBALS['phpgw']->preferences->add('expressoMail','mainscreen_showmail',$_POST['mainscreen_showmail']); 
     106 
     107                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts']) 
     108                        $GLOBALS['phpgw']->preferences->change('expressoMail','use_shortcuts',$_POST['use_shortcuts']); 
     109                else 
     110                        $GLOBALS['phpgw']->preferences->add('expressoMail','use_shortcuts',$_POST['use_shortcuts']); 
    101111 
    102112                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature']) 
     
    150160        $GLOBALS['phpgw']->template->set_var('lang_line_height',lang('Padding Email List')); 
    151161        $GLOBALS['phpgw']->template->set_var('lang_font_size',lang('Font Size')); 
     162        $GLOBALS['phpgw']->template->set_var('lang_use_shortcuts',lang('Use shortcuts')); 
    152163        $GLOBALS['phpgw']->template->set_var('lang_signature',lang('Signature')); 
    153164        $GLOBALS['phpgw']->template->set_var('dont_use',lang('Don\'t use')); 
     
    162173        $GLOBALS['phpgw']->template->set_var('big',lang('Big')); 
    163174 
    164  
    165  
    166          
    167          
    168175        $boemailadmin   = CreateObject('emailadmin.bo'); 
    169176        $emailadmin_profile = $boemailadmin->getProfileList(); 
Note: See TracChangeset for help on using the changeset viewer.