mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 15:00:07 +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']) {
|
if($todo['edit']) {
|
||||||
list($width, $height) = explode('x', $todo['edit']['size']);
|
list($width, $height) = explode('x', $todo['edit']['size']);
|
||||||
unset($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;"');
|
$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;"');
|
||||||
$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;"');
|
$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;"');
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$icon_href = $GLOBALS['egw']->html->a_href($icons,$todo['view']);
|
|
||||||
$href = $todo['view'];
|
|
||||||
}
|
}
|
||||||
|
$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>".
|
$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']:
|
"</td>\n <td>".($this->printer_friendly?$todo['title']:
|
||||||
$href)."</td>\n </tr>\n";
|
$href)."</td>\n </tr>\n";
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user