mirror of https://github.com/mikaku/Monitorix.git
Clean up a little bit more
This commit is contained in:
parent
1d9a0f0353
commit
a6bff83c90
|
@ -93,15 +93,15 @@ sub picz_js_a_element {
|
|||
|
||||
my $zoom = (uc($params{config}->{image_format}) eq "SVG") ? (4 / 3) : 1;
|
||||
|
||||
my $width = ceil($params{width} * $zoom);
|
||||
my $height = ceil($params{height} * $zoom + 0.5);
|
||||
|
||||
return sprintf '<a href="javascript:void(window.open(\'%s/%s%s\',\'\',\'width=%d,height=%d,scrollbars=0,resizable=0\'))">%s</a>',
|
||||
my $js = sprintf "javascript:void(window.open('%s/%s%s','','width=%d,height=%d,scrollbars=0,resizable=0'))",
|
||||
$params{config}->{url},
|
||||
$params{config}->{imgs_dir},
|
||||
$params{IMGz},
|
||||
$width,
|
||||
$height,
|
||||
ceil($params{width} * $zoom),
|
||||
ceil($params{height} * $zoom + 0.5);
|
||||
|
||||
return sprintf '<a href="%s">%s</a>',
|
||||
$js,
|
||||
img_element(%params);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue