diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index c8dfce7ab9..c23ea9a2ca 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -756,11 +756,23 @@ class calendar_ui // Category Selection $cat_id = explode(',',$this->cat_id); + $current_view_url = egw::link('/index.php',array( + 'menuaction' => $this->view_menuaction, + 'date' => $this->date, + )+($this->view == 'listview' ? array('ajax' => 'true') : array()),false); + $select = ' \n" . html::image('phpgwapi','attach','','id="calendar_cat_id_multiple"'); + "\n" . html::image('phpgwapi','attach','','id="calendar_cat_id_multiple"')." + \n"; $file[++$n] = array( 'text' => $select, @@ -779,20 +791,8 @@ class calendar_ui } // we no longer exclude non-accounts from the account-selection: it shows all types of participants $accounts = explode(',',$this->owner); - $current_view_url = egw::link('/index.php',array( - 'menuaction' => $this->view_menuaction, - 'date' => $this->date, - )+($this->view == 'listview' ? array('ajax' => 'true') : array()),false); $file[] = array( - 'text' => " - \n". - + 'text' => $this->accountsel->selection('owner','uical_select_owner',$accounts,'calendar+',count($accounts) > 1 ? 4 : 1,False, ' style="width: '.(count($accounts) > 1 && in_array($this->common_prefs['account_selection'],array('selectbox','groupmembers')) ? '86%' : '86%').';"'. ' title="'.lang('select a %1',lang('user')).'"','',$grants,false,array($this->bo,'participant_name')), @@ -833,7 +833,7 @@ class calendar_ui if ($GLOBALS['egw_info']['user']['preferences']['calendar']['document_dir']) { $options = ''; - + $documents = calendar_merge::get_documents($GLOBALS['egw_info']['user']['preferences']['calendar']['document_dir'], '', null,'calendar'); foreach($documents as $key => $value) {