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:
Ralf Becker 2014-02-11 16:52:45 +00:00
parent ea9e2569bc
commit 28df2d8125
2 changed files with 14 additions and 1 deletions

View File

@ -694,6 +694,14 @@ egw_LAB.wait(function() {
$path = $image; // name may already contain absolut path $path = $image; // name may already contain absolut path
} }
$image = ' src="'.$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) if (!$no_lang)
{ {
@ -704,7 +712,7 @@ egw_LAB.wait(function() {
{ {
$label_u = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$label); $label_u = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$label);
$label = str_replace('&','',$label); $label = str_replace('&','',$label);
$options = 'accesskey="'.$accesskey[1].'" '.$options; $options .= ' accesskey="'.$accesskey[1].'" '.$options;
} }
else else
{ {

View File

@ -980,3 +980,8 @@ div.admin-config form > table tr.th td{
div.admin-config form > table td { div.admin-config form > table td {
padding-left: 5px; padding-left: 5px;
} }
button.image_button {
background: none;
border: none;
}