turn off host validation
This commit is contained in:
parent
b7096b742d
commit
b6c02b563b
|
@ -85,8 +85,8 @@ function validateForm( form )
|
|||
}
|
||||
else if ( form.elements['newMonitor[Type]'].value == 'Remote' )
|
||||
{
|
||||
if ( !form.elements['newMonitor[Host]'].value || !form.elements['newMonitor[Host]'].value.match( /^[0-9a-zA-Z_.:@-]+$/ ) )
|
||||
errors[errors.length] = "<?php echo translate('BadHost') ?>";
|
||||
//if ( !form.elements['newMonitor[Host]'].value || !form.elements['newMonitor[Host]'].value.match( /^[0-9a-zA-Z_.:@-]+$/ ) )
|
||||
//errors[errors.length] = "<?php echo translate('BadHost') ?>";
|
||||
if ( form.elements['newMonitor[Port]'].value && !form.elements['newMonitor[Port]'].value.match( /^\d+$/ ) )
|
||||
errors[errors.length] = "<?php echo translate('BadPort') ?>";
|
||||
//if ( !form.elements['newMonitor[Path]'].value )
|
||||
|
|
Loading…
Reference in New Issue