Changeset 4195


Ignore:
Timestamp:
05/03/11 09:05:13 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1736 - Intervalo de visualização mínima da agenda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php

    r4184 r4195  
    16841684                                $GLOBALS['phpgw']->preferences->save_repository(); 
    16851685                        } 
    1686                         $increment = $this->bo->prefs['calendar']['interval']; 
     1686                        if($this->bo->prefs['calendar']['interval'] == '42') 
     1687                        { 
     1688                            $increment = 30; 
     1689                        } 
     1690                        elseif($this->bo->prefs['calendar']['interval'] == '84') 
     1691                        { 
     1692                            $increment = 15; 
     1693                        } 
    16871694                        $interval = (int)(60 / $increment); 
    16881695 
     
    50705077 
    50715078                        $templateSet = $GLOBALS['phpgw_info']['server']['template_set']; 
    5072                          
     5079 
    50735080                        $p->set_file($templates); 
    50745081                        $p->set_block('day_cal','day','day'); 
     
    52655272                function print_events_to_show_json($params) 
    52665273                { 
     5274 
     5275                        if( (!isset($this->bo->prefs['calendar']['interval'])) || ( (isset($this->bo->prefs['calendar']['interval'])) && ( ($this->bo->prefs['calendar']['interval'] != 42) || ($this->bo->prefs['calendar']['interval'] != 84) ) ) ) 
     5276                        { 
     5277                                $this->bo->prefs['calendar']['interval'] = 42; 
     5278                                $GLOBALS['phpgw']->preferences->add('calendar','interval',42); 
     5279                                $GLOBALS['phpgw']->preferences->save_repository(); 
     5280                        } 
     5281 
    52675282                        if(!is_array($params)) 
    52685283                        { 
Note: See TracChangeset for help on using the changeset viewer.