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:
parent
1acc2abaf7
commit
d1dfb17c83
|
@ -78,10 +78,10 @@ function validateForm(Form)
|
||||||
{
|
{
|
||||||
var errors = new Array();
|
var errors = new Array();
|
||||||
|
|
||||||
if ( Form.elements['new_control[Name]'].value.search( /[^\w-]/ ) >= 0 )
|
//if ( Form.elements['new_control[Name]'].value.search( /[^\w-]/ ) >= 0 )
|
||||||
{
|
//{
|
||||||
errors[errors.length] = "<?= $zmSlangBadNameChars ?>";
|
//errors[errors.length] = "<?= $zmSlangBadNameChars ?>";
|
||||||
}
|
//}
|
||||||
if ( errors.length )
|
if ( errors.length )
|
||||||
{
|
{
|
||||||
alert( errors.join( "\n" ) );
|
alert( errors.join( "\n" ) );
|
||||||
|
|
Loading…
Reference in New Issue