Allow spaces in monitor names
This commit is contained in:
parent
51a4298fc7
commit
71db9b84e6
|
@ -59,7 +59,7 @@ function validateForm( form )
|
|||
{
|
||||
var errors = new Array();
|
||||
|
||||
if ( form.elements['newMonitor[Name]'].value.search( /[^\w-]/ ) >= 0 )
|
||||
if ( form.elements['newMonitor[Name]'].value.search( /[^\w- ]/ ) >= 0 )
|
||||
errors[errors.length] = "<?php echo translate('BadNameChars') ?>";
|
||||
else if ( form.elements.mid.value == 0 && monitorNames[form.elements['newMonitor[Name]'].value] )
|
||||
errors[errors.length] = "<?php echo translate('DuplicateMonitorName') ?>";
|
||||
|
|
Loading…
Reference in New Issue