mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Use edit link (if available) only on icons, text link is for view
This commit is contained in:
parent
d2b8d66c8b
commit
cf7dd57c66
@ -970,16 +970,13 @@ function open_edit(series)
|
||||
if($todo['edit']) {
|
||||
list($width, $height) = explode('x', $todo['edit']['size']);
|
||||
unset($todo['edit']['size']);
|
||||
$icon_href = html::a_href( $icons, $todo['edit'],'',' target="_blank" onclick="window.open(this.href,this.target,\'dependent=yes,width='.$width.',height='.$height.',scrollbars=yes,status=yes\'); return false;"');
|
||||
$href = html::a_href( $todo['title'], $todo['edit'],'',' target="_blank" onclick="window.open(this.href,this.target,\'dependent=yes,width=750,height=590,scrollbars=yes,status=yes\'); return false;"');
|
||||
}
|
||||
else
|
||||
{
|
||||
$icon_href = $GLOBALS['egw']->html->a_href($icons,$todo['view']);
|
||||
$href = $todo['view'];
|
||||
$edit_icon_href = html::a_href( $icons, $todo['edit'],'',' target="_blank" onclick="window.open(this.href,this.target,\'dependent=yes,width='.$width.',height='.$height.',scrollbars=yes,status=yes\'); return false;"');
|
||||
$edit_href = html::a_href( $todo['title'], $todo['edit'],'',' target="_blank" onclick="window.open(this.href,this.target,\'dependent=yes,width=750,height=590,scrollbars=yes,status=yes\'); return false;"');
|
||||
}
|
||||
$icon_href = html::a_href($icons,$todo['view']);
|
||||
$href = html::a_href($todo['title'], $todo['view']);
|
||||
$content .= " <tr class=\"$class\">\n <td valign=\"top\" width=\"15%\" nowrap>".
|
||||
($this->bo->printer_friendly?$icons:$icon_href).
|
||||
($this->bo->printer_friendly?$icons:($edit_icon_href ? $edit_icon_href : $icon_href)).
|
||||
"</td>\n <td>".($this->printer_friendly?$todo['title']:
|
||||
$href)."</td>\n </tr>\n";
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user