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
This commit is contained in:
stan 2006-03-23 18:10:32 +00:00
parent 1acc2abaf7
commit d1dfb17c83
1 changed files with 4 additions and 4 deletions

View File

@ -78,10 +78,10 @@ function validateForm(Form)
{
var errors = new Array();
if ( Form.elements['new_control[Name]'].value.search( /[^\w-]/ ) >= 0 )
{
errors[errors.length] = "<?= $zmSlangBadNameChars ?>";
}
//if ( Form.elements['new_control[Name]'].value.search( /[^\w-]/ ) >= 0 )
//{
//errors[errors.length] = "<?= $zmSlangBadNameChars ?>";
//}
if ( errors.length )
{
alert( errors.join( "\n" ) );