Fixed zone image map for percentage zones.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@562 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
eceae4bda0
commit
e5870060d0
|
@ -2011,7 +2011,7 @@ function configureButton(form,name)
|
|||
if ( $zone[Units] == 'Percent' )
|
||||
{
|
||||
?>
|
||||
<area shape="rect" coords="<?= sprintf( "%d,%d,%d,%d", $zone[LoX]*$monitor[Width], $zone[LoY]*$monitor[Height], $zone[HiX]*$monitor[Width], $zone[HiY]*$monitor[Height] ) ?>" href="javascript: newWindow( '<?= $PHP_SELF ?>?view=zone&mid=<?= $mid ?>&zid=<?= $zone[Id] ?>', 'zmZone', <?= $jws['zone']['w'] ?>, <?= $jws['zone']['h'] ?> );">
|
||||
<area shape="rect" coords="<?= sprintf( "%d,%d,%d,%d", ($zone[LoX]*$monitor[Width])/100, ($zone[LoY]*$monitor[Height])/100, ($zone[HiX]*$monitor[Width])/100, ($zone[HiY]*$monitor[Height])/100 ) ?>" href="javascript: newWindow( '<?= $PHP_SELF ?>?view=zone&mid=<?= $mid ?>&zid=<?= $zone[Id] ?>', 'zmZone', <?= $jws['zone']['w'] ?>, <?= $jws['zone']['h'] ?> );">
|
||||
<?php
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue