From d1dfb17c83f1b5648f66a84d51dd1bab402b2872 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 23 Mar 2006 18:10:32 +0000 Subject: [PATCH] Removed check for spaces etc in Control Capability name. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1880 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html_view_controlcap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/zm_html_view_controlcap.php b/web/zm_html_view_controlcap.php index 2cf3a3c54..9ffc09653 100644 --- a/web/zm_html_view_controlcap.php +++ b/web/zm_html_view_controlcap.php @@ -78,10 +78,10 @@ function validateForm(Form) { var errors = new Array(); - if ( Form.elements['new_control[Name]'].value.search( /[^\w-]/ ) >= 0 ) - { - errors[errors.length] = ""; - } + //if ( Form.elements['new_control[Name]'].value.search( /[^\w-]/ ) >= 0 ) + //{ + //errors[errors.length] = ""; + //} if ( errors.length ) { alert( errors.join( "\n" ) );