allow periods in monitor name
This commit is contained in:
parent
76d37d4c95
commit
06c61f0324
|
@ -50,7 +50,7 @@ monitorNames['<?php echo validJsStr($name) ?>'] = true;
|
|||
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