Fix image pandora UX modules links - #90
This commit is contained in:
parent
e7ea4bbda8
commit
a6f546c8d8
|
@ -3649,13 +3649,22 @@ function ui_print_module_string_value($value, $id_agente_module,
|
|||
"id=" . $id_agente_module .
|
||||
"&refr=" . $current_interval .
|
||||
"&label=" . rawurlencode(urlencode(io_safe_output($module_name))) . "','" . $win_handle . "', 700,480)";
|
||||
|
||||
if (is_image_data($value)) {
|
||||
$salida = '<a href="javascript:' . $link . '">' .
|
||||
html_print_image("images/photo.png", true,
|
||||
array("border" => '0',
|
||||
"alt" => "",
|
||||
"title" => __("Snapshot view"))) . '</a> ';
|
||||
}
|
||||
else {
|
||||
$salida = '<a href="javascript:' . $link . '">' .
|
||||
html_print_image("images/default_list.png", true,
|
||||
array("border" => '0',
|
||||
"alt" => "",
|
||||
"title" => __("Snapshot view"))) . '</a> ';
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
$sub_string = substr(io_safe_output($value), 0, 12);
|
||||
|
|
|
@ -1347,13 +1347,15 @@ if (!empty($result)) {
|
|||
$link = "winopeng_var('$row[datos]','',700,480)";
|
||||
|
||||
}
|
||||
if(!is_snapshot_data($row['datos'])){
|
||||
|
||||
if(!is_image_data($row['datos'])){
|
||||
$salida = '<a href="javascript:' . $link . '">' .
|
||||
html_print_image('images/default_list.png', true,
|
||||
array('border' => '0',
|
||||
'alt' => '',
|
||||
'title' => __('Snapshot view'))) . '</a> ';
|
||||
}else{
|
||||
}
|
||||
else {
|
||||
$salida = '<a href="javascript:' . $link . '">' .
|
||||
html_print_image('images/photo.png', true,
|
||||
array('border' => '0',
|
||||
|
|
Loading…
Reference in New Issue