mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
"fixed wrong position of holidays after scrolling arrows in dayview "
This commit is contained in:
parent
86359f111c
commit
337fd31119
@ -908,10 +908,15 @@ class uiviews extends uical
|
|||||||
$ts = $this->bo->date2ts((string)$day_ymd);
|
$ts = $this->bo->date2ts((string)$day_ymd);
|
||||||
$title = !is_bool($short_title) ? $short_title :
|
$title = !is_bool($short_title) ? $short_title :
|
||||||
($short_title ? lang(adodb_date('l',$ts)).' '.adodb_date('d.',$ts) : $this->bo->long_date($ts,0,false,true));
|
($short_title ? lang(adodb_date('l',$ts)).' '.adodb_date('d.',$ts) : $this->bo->long_date($ts,0,false,true));
|
||||||
|
|
||||||
$day_view = array(
|
$day_view = array(
|
||||||
'menuaction' => 'calendar.uiviews.day',
|
'menuaction' => 'calendar.uiviews.day',
|
||||||
'date' => $day_ymd,
|
'date' => $day_ymd,
|
||||||
);
|
);
|
||||||
|
$this->_day_class_holiday($day_ymd,$class,$holidays);
|
||||||
|
// the weekday and date
|
||||||
|
if (!$short_title && $holidays) $title .= ': '.$holidays;
|
||||||
|
|
||||||
if ($short_title === true)
|
if ($short_title === true)
|
||||||
{
|
{
|
||||||
$title = $this->html->a_href($title,$day_view,'',
|
$title = $this->html->a_href($title,$day_view,'',
|
||||||
@ -925,10 +930,8 @@ class uiviews extends uical
|
|||||||
$day_view['date'] = $this->bo->date2string($ts += 48*HOUR_s);
|
$day_view['date'] = $this->bo->date2string($ts += 48*HOUR_s);
|
||||||
$title .= ' '.$this->html->a_href($this->html->image('phpgwapi','right',$this->bo->long_date($ts)),$day_view);
|
$title .= ' '.$this->html->a_href($this->html->image('phpgwapi','right',$this->bo->long_date($ts)),$day_view);
|
||||||
}
|
}
|
||||||
$this->_day_class_holiday($day_ymd,$class,$holidays);
|
|
||||||
// the weekday and date
|
|
||||||
$html .= $indent."\t".'<div style="height: '. $this->rowHeight .'%;" class="calDayColHeader '.$class.'"'.($holidays ? ' title="'.$holidays.'"':'').'>'.
|
$html .= $indent."\t".'<div style="height: '. $this->rowHeight .'%;" class="calDayColHeader '.$class.'"'.($holidays ? ' title="'.$holidays.'"':'').'>'.
|
||||||
$title.(!$short_title && $holidays ? ': '.$holidays : '')."</div>\n";
|
$title."</div>\n";
|
||||||
|
|
||||||
if ($this->use_time_grid)
|
if ($this->use_time_grid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user