mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 11:21:42 +02:00
added TITLE to link around img as submit-button
This commit is contained in:
parent
4b05104bd7
commit
3adb76644e
@ -487,6 +487,7 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'button':
|
case 'button':
|
||||||
|
list($app) = explode('.',$this->name);
|
||||||
if ($this->java_script() && $cell['onchange'])
|
if ($this->java_script() && $cell['onchange'])
|
||||||
{
|
{
|
||||||
$html .= $this->html->input_hidden($form_name,'',False) . "\n";
|
$html .= $this->html->input_hidden($form_name,'',False) . "\n";
|
||||||
@ -496,10 +497,13 @@
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
list($img,$ro_img) = explode(',',$cell['size']);
|
list($img,$ro_img) = explode(',',$cell['size']);
|
||||||
|
if (!empty($img))
|
||||||
|
{
|
||||||
|
$options .= ' TITLE="'.$label.'"';
|
||||||
|
}
|
||||||
$html .= !$readonly ? $this->html->submit_button($form_name,$label,'',
|
$html .= !$readonly ? $this->html->submit_button($form_name,$label,'',
|
||||||
strlen($label) <= 1 || $cell['no_lang'],$options,$img) :
|
strlen($label) <= 1 || $cell['no_lang'],$options,$img,$app) :
|
||||||
$this->html->image(substr($this->name,0,strpos($this->name,'.')),$ro_img);
|
$this->html->image($app,$ro_img);
|
||||||
}
|
}
|
||||||
$extra_label = False;
|
$extra_label = False;
|
||||||
if (!$readonly)
|
if (!$readonly)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user