Merged in monitor name restriction feature.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@852 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2004-02-15 19:44:31 +00:00
parent 4389b44ad6
commit 6998a2ee10
2 changed files with 12 additions and 0 deletions

View File

@ -109,6 +109,17 @@ opener.location.reload(true);
window.focus();
function validateForm(Form)
{
var errors = new Array();
if ( Form.elements['new_monitor[Name]'].value.search( /[^\w-]/ ) >= 0 )
{
errors[errors.length] = "<?= $zmSlangBadMonitorChars ?>";
}
if ( errors.length )
{
alert( errors.join( "\n" ) );
return( false );
}
return( true );
}

View File

@ -107,6 +107,7 @@ $zmSlangAutoEmailEvents = 'Automatically email details of all matching even
$zmSlangAutoMessageEvents = 'Automatically message details of all matching events';
$zmSlangAutoUploadEvents = 'Automatically upload all matching events';
$zmSlangAvgBrScore = 'Avg.<br/>Score';
$zmSlangBadMonitorChars = 'Monitor Names may only contain alphanumeric characters plus hyphen and underscore';
$zmSlangBandwidth = 'Bandwidth';
$zmSlangBlobPx = 'Blob Px';
$zmSlangBlobs = 'Blobs';