#11713 fix title buttons

This commit is contained in:
miguel angel rasteu 2023-08-03 12:51:09 +02:00
parent 1937c3fa00
commit 135c6835bd
3 changed files with 10 additions and 16 deletions

View File

@ -926,7 +926,7 @@ foreach ($simple_alerts as $alert) {
'padding:0px; width: 22px; height: 22px;', 'padding:0px; width: 22px; height: 22px;',
true, true,
[ [
'class' => 'main_menu_icon', 'class' => 'invert filter main_menu_icon',
'title' => __('Disable'), 'title' => __('Disable'),
] ]
); );
@ -1151,8 +1151,7 @@ if (! $id_agente) {
return false; return false;
}); });
$("input[name=disable]").attr ("title", "<?php echo __('Disable'); ?>") $("input[name=disable]").hover (function () {
.hover (function () {
$(this).attr ("src", $(this).attr ("src",
<?php <?php
echo '"'.html_print_image( echo '"'.html_print_image(
@ -1178,8 +1177,7 @@ if (! $id_agente) {
} }
); );
$("input[name=enable]").attr ("title", "<?php echo __('Enable'); ?>") $("input[name=enable]").hover (function () {
.hover (function () {
$(this).attr ("src", $(this).attr ("src",
<?php <?php
echo '"'.html_print_image( echo '"'.html_print_image(
@ -1205,8 +1203,7 @@ if (! $id_agente) {
} }
); );
$("input[name=standby_on]").attr ("title", "<?php echo __('Set off standby'); ?>") $("input[name=standby_on]").hover (function () {
.hover (function () {
$(this).attr ("src", $(this).attr ("src",
<?php <?php
echo '"'.html_print_image( echo '"'.html_print_image(
@ -1232,8 +1229,7 @@ if (! $id_agente) {
} }
); );
$("input[name=standby_off]").attr ("title", "<?php echo __('Set standby'); ?>") $("input[name=standby_off]").hover (function () {
.hover (function () {
$(this).attr ("src", $(this).attr ("src",
<?php <?php
echo '"'.html_print_image( echo '"'.html_print_image(

View File

@ -3342,14 +3342,12 @@ function html_print_input_image($name, $src, $value, $style='', $return=false, $
} }
foreach ($attrs as $attribute) { foreach ($attrs as $attribute) {
if ($attribute === 'title') { if ($attribute !== 'title') {
continue;
}
if (isset($options[$attribute])) { if (isset($options[$attribute])) {
$output .= ' '.$attribute.'="'.io_safe_input_html($options[$attribute]).'"'; $output .= ' '.$attribute.'="'.io_safe_input_html($options[$attribute]).'"';
} }
} }
}
$output .= ' value="'.$value.'" />'; $output .= ' value="'.$value.'" />';

View File

@ -4749,7 +4749,7 @@ form ul.form_flex li ul li {
.flex_center > form > input[type="image"] { .flex_center > form > input[type="image"] {
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 14px; width: 20px;
padding-left: 5px; padding-left: 5px;
} }