mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed javascript error, which cause freetime search not to function on new events (page gets transmitted instead)
This commit is contained in:
parent
8cdc5262ad
commit
c72227f203
@ -4209,9 +4209,11 @@ return;
|
||||
{
|
||||
$GLOBALS['phpgw']->uiaccountsel = CreateObject('phpgwapi.uiaccountsel');
|
||||
}
|
||||
$fts_link = $GLOBALS['phpgw']->link('/index.php',array('menuaction'=>'calendar.uiforms.freetimesearch'));
|
||||
$get_args = array('menuaction'=>'calendar.uiforms.freetimesearch');
|
||||
if ($event['id']) $get_args['cal_id'] = $event['id'];
|
||||
$fts_link = $GLOBALS['phpgw']->link('/index.php',$get_args);
|
||||
|
||||
$fields = array('start[str]','start[hour]','start[min]','end[str]','end[hour]','end[min]','cal[id]','cal[recur_type]');
|
||||
$fields = array('start[str]','start[hour]','start[min]','end[str]','end[hour]','end[min]','cal[recur_type]');
|
||||
if ($this->bo->prefs['common']['timeformat'] == '12')
|
||||
{
|
||||
$fields[] = 'start[ampm]';
|
||||
|
@ -76,7 +76,7 @@ class uiforms extends uical
|
||||
{
|
||||
if ((int) $uid) $content['participants'][] = (int) $uid;
|
||||
}
|
||||
$content['cal_id'] = $_GET['cal']['id'];
|
||||
$content['cal_id'] = $_GET['cal_id'];
|
||||
$content['recur_type'] = $_GET['cal']['recur_type'];
|
||||
|
||||
// default search parameters
|
||||
@ -96,7 +96,7 @@ class uiforms extends uical
|
||||
if (is_array($content['freetime']['select']))
|
||||
{
|
||||
list($selected) = each($content['freetime']['select']);
|
||||
echo "$selected = ".date('D d.m.Y H:i',$content['freetime'][$selected]['start']);
|
||||
//echo "$selected = ".date('D d.m.Y H:i',$content['freetime'][$selected]['start']);
|
||||
$start = (int) $content['freetime'][$selected]['start'];
|
||||
$end = $start + $duration;
|
||||
$fields_to_set = array(
|
||||
|
Loading…
Reference in New Issue
Block a user