store whole state in prefs, so calendar displays identical view after a new login (beside the date)

This commit is contained in:
Ralf Becker 2010-06-09 16:14:19 +00:00
parent e977610a4b
commit 3f344fd852
2 changed files with 4 additions and 2 deletions

View File

@ -251,7 +251,8 @@ class calendar_hooks
} }
return array( return array(
'defaultcalendar' => array( /* not longer used, as we store whole state in prefs
'defaultcalendar' => array(
'type' => 'select', 'type' => 'select',
'label' => 'default calendar view', 'label' => 'default calendar view',
'name' => 'defaultcalendar', 'name' => 'defaultcalendar',
@ -261,6 +262,7 @@ class calendar_hooks
'admin' => False, 'admin' => False,
'default'=> 'week', 'default'=> 'week',
), ),
*/
'days_in_weekview' => array( 'days_in_weekview' => array(
'type' => 'select', 'type' => 'select',
'label' => 'default week view', 'label' => 'default week view',

View File

@ -123,7 +123,7 @@ class calendar_ui
/** /**
* @var array $states_to_save all states that will be saved to the user prefs * @var array $states_to_save all states that will be saved to the user prefs
*/ */
var $states_to_save = array('owner','filter'); var $states_to_save = array('owner','filter','cat_id','view','sortby','planner_days');
/** /**
* Constructor * Constructor