Try to not fetch todos from infolog on Calendar's initialization and let day view fetches them via ajax call as it might be expensive operation

This commit is contained in:
Hadi Nategh 2016-09-28 14:20:16 +02:00
parent 6e0e86ced2
commit be20b14c2c

View File

@ -236,7 +236,7 @@ class calendar_uiviews extends calendar_ui
// Load the different views once, we'll switch between them on the client side
$todo = new Etemplate('calendar.todo');
$label = '';
$todo->exec('calendar_uiviews::index',array('todos'=>$this->get_todos($label), 'label' => $label));
$todo->exec('calendar_uiviews::index',array('todos'=>'', 'label' => $label));
// Actually, this takes care of most of it...
$this->week();