mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
added title for links option to label widget
This commit is contained in:
parent
5f35a0cf8b
commit
d02c93748a
@ -391,6 +391,7 @@ implement only a subset of XUL. Here are the main differences:</p>
|
||||
<b>4.</b> name of form-element the label is for: gives focus to that element if the label gets clicked<br />
|
||||
<b>5.</b> target for the link, eg. _blank<br />
|
||||
<b>6.</b> width<i>x</i>height if a popup should be used for the link, eg. 600x400
|
||||
<b>7.</b> title<i>x</i>title for the link
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -902,10 +902,10 @@
|
||||
}
|
||||
switch ($type)
|
||||
{
|
||||
case 'label': // size: [b[old]][i[talic]],[link],[activate_links],[label_for],[link_target],[link_popup_size]
|
||||
case 'label': // size: [b[old]][i[talic]],[link],[activate_links],[label_for],[link_target],[link_popup_size],[link_title]
|
||||
if (is_array($value))
|
||||
break;
|
||||
list($style,$extra_link,$activate_links,$label_for,$extra_link_target,$extra_link_popup) = explode(',',$cell_options);
|
||||
list($style,$extra_link,$activate_links,$label_for,$extra_link_target,$extra_link_popup,$extra_link_title) = explode(',',$cell_options);
|
||||
$value = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value;
|
||||
$value = nl2br($this->html->htmlspecialchars($value));
|
||||
if ($activate_links) $value = $this->html->activate_links($value);
|
||||
@ -921,8 +921,8 @@
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 'html': // size: [link],[link_target],[link_popup_size]
|
||||
list($extra_link,$extra_link_target,$extra_link_popup) = explode(',',$cell_options);
|
||||
case 'html': // size: [link],[link_target],[link_popup_size],[link_title]
|
||||
list($extra_link,$extra_link_target,$extra_link_popup,$extra_link_title) = explode(',',$cell_options);
|
||||
$html .= $value;
|
||||
break;
|
||||
case 'int': // size: [min],[max],[len],[precission (only float)]
|
||||
@ -1535,6 +1535,10 @@
|
||||
list($w,$h) = explode('x',$extra_link_popup);
|
||||
$options .= ' onclick="window.open(this,this.target,\'width='.(int)$w.',height='.(int)$h.',location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false;"';
|
||||
}
|
||||
if ($extra_link_title)
|
||||
{
|
||||
$options .= ' title="'.addslashes($extra_link_title).'"';
|
||||
}
|
||||
return $this->html->a_href($html,$extra_link,'',$options);
|
||||
}
|
||||
// if necessary show validation-error behind field
|
||||
|
Loading…
Reference in New Issue
Block a user