mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fixed buttons with just an image from html::submit_button() were shown like a button after changing tag from <input type="submit" to <button
This commit is contained in:
parent
ea9e2569bc
commit
28df2d8125
@ -694,6 +694,14 @@ egw_LAB.wait(function() {
|
||||
$path = $image; // name may already contain absolut path
|
||||
}
|
||||
$image = ' src="'.$path.'"';
|
||||
if (strpos($options, 'class="') !== false)
|
||||
{
|
||||
$options = str_replace('class="', 'class="image_button ', $options);
|
||||
}
|
||||
else
|
||||
{
|
||||
$options .= ' class="image_button"';
|
||||
}
|
||||
}
|
||||
if (!$no_lang)
|
||||
{
|
||||
@ -704,7 +712,7 @@ egw_LAB.wait(function() {
|
||||
{
|
||||
$label_u = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$label);
|
||||
$label = str_replace('&','',$label);
|
||||
$options = 'accesskey="'.$accesskey[1].'" '.$options;
|
||||
$options .= ' accesskey="'.$accesskey[1].'" '.$options;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -980,3 +980,8 @@ div.admin-config form > table tr.th td{
|
||||
div.admin-config form > table td {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
button.image_button {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user