From d60bcedf721c77b2a9f5b0de50c4c4b9eb30372a Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 5 May 2004 16:21:29 +0000 Subject: [PATCH] Fixed JavaScript error. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1057 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html_view_zone.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/zm_html_view_zone.php b/web/zm_html_view_zone.php index 1ce904884..946eb2092 100644 --- a/web/zm_html_view_zone.php +++ b/web/zm_html_view_zone.php @@ -199,7 +199,7 @@ function applyZoneUnits( Form ) var max_width = ; var max_height = ; - if ( Form.elements['new_zone[units]'].value == 'Pixels' ) + if ( Form.elements['new_zone[Units]'].value == 'Pixels' ) { toPixels( Form.elements['new_zone[LoX]'], max_width ); toPixels( Form.elements['new_zone[LoY]'], max_height ); @@ -259,7 +259,7 @@ function limitFilter( Field ) function checkBounds( Field, fieldText, minValue, maxValue ) { - if ( document.zone_form.new_units.value == "Percent" ) + if ( document.zone_form.elements['new_zone[Units]'].value == "Percent" ) { minValue = 0; maxValue = 100;