UI_toggle updated

This commit is contained in:
fbsanchez 2019-05-27 19:08:41 +02:00
parent 5be124f315
commit 954dd0b43a
1 changed files with 4 additions and 6 deletions

View File

@ -2474,17 +2474,15 @@ function ui_toggle($code, $name, $title='', $hidden_default=true, $return=false,
// Generate unique Id
$uniqid = uniqid('');
$image_a = html_print_image('images/arrow_down_green.png', true, false, true);
$image_b = html_print_image('images/arrow_right_green.png', true, false, true);
// Options
if ($hidden_default) {
$style = 'display:none';
$image_a = html_print_image('images/down.png', true, false, true);
$image_b = html_print_image('images/go.png', true, false, true);
$original = 'images/go.png';
$original = 'images/arrow_right_green.png';
} else {
$style = '';
$image_a = html_print_image('images/down.png', true, false, true);
$image_b = html_print_image('images/go.png', true, false, true);
$original = 'images/down.png';
$original = 'images/arrow_down_green.png';
}
// Link to toggle