diff --git a/web/skins/classic/views/js/zone.js b/web/skins/classic/views/js/zone.js index 5963ed292..0bb446478 100644 --- a/web/skins/classic/views/js/zone.js +++ b/web/skins/classic/views/js/zone.js @@ -356,6 +356,7 @@ function updateActivePoint( index ) var Point = $('zonePoly').points.getItem(index); Point.x =x; Point.y =y; + updateArea(); } function addPoint( index ) @@ -468,13 +469,13 @@ function drawZonePoints() cell = new Element( 'td' ); var input = new Element( 'input', { 'id': 'newZone[Points]['+i+'][x]', 'name': 'newZone[Points]['+i+'][x]', 'value': zone['Points'][i].x, 'size': 5 } ); - input.addEvent( 'change', updateX.pass( i ) ); + input.addEvent( 'input', updateX.pass( i ) ); input.inject( cell ); cell.inject( row ); cell = new Element( 'td' ); input = new Element( 'input', { 'id': 'newZone[Points]['+i+'][y]', 'name': 'newZone[Points]['+i+'][y]', 'value': zone['Points'][i].y, 'size': 5 } ); - input.addEvent( 'change', updateY.pass( i ) ); + input.addEvent( 'input', updateY.pass( i ) ); input.inject( cell ); cell.inject( row ); diff --git a/web/skins/classic/views/zone.php b/web/skins/classic/views/zone.php index 27f5e8a58..a61e549d4 100644 --- a/web/skins/classic/views/zone.php +++ b/web/skins/classic/views/zone.php @@ -131,7 +131,7 @@ xhtmlHeaders(__FILE__, translate('Zone') );

Name() ?> -

-
+ @@ -249,8 +249,8 @@ for ( $i = 0; $i < $pointCols; $i++ ) ?> - disabled="disabled"/> - disabled="disabled"/> + disabled="disabled"/> + disabled="disabled"/> + 3 ) { ?>  X