turn off host validation

This commit is contained in:
Isaac Connor 2016-07-14 10:22:09 -04:00
parent b7096b742d
commit b6c02b563b
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ function validateForm( form )
} }
else if ( form.elements['newMonitor[Type]'].value == 'Remote' ) else if ( form.elements['newMonitor[Type]'].value == 'Remote' )
{ {
if ( !form.elements['newMonitor[Host]'].value || !form.elements['newMonitor[Host]'].value.match( /^[0-9a-zA-Z_.:@-]+$/ ) ) //if ( !form.elements['newMonitor[Host]'].value || !form.elements['newMonitor[Host]'].value.match( /^[0-9a-zA-Z_.:@-]+$/ ) )
errors[errors.length] = "<?php echo translate('BadHost') ?>"; //errors[errors.length] = "<?php echo translate('BadHost') ?>";
if ( form.elements['newMonitor[Port]'].value && !form.elements['newMonitor[Port]'].value.match( /^\d+$/ ) ) if ( form.elements['newMonitor[Port]'].value && !form.elements['newMonitor[Port]'].value.match( /^\d+$/ ) )
errors[errors.length] = "<?php echo translate('BadPort') ?>"; errors[errors.length] = "<?php echo translate('BadPort') ?>";
//if ( !form.elements['newMonitor[Path]'].value ) //if ( !form.elements['newMonitor[Path]'].value )