diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index 75fbca7b2..6b0ac3b87 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -75,9 +75,7 @@ function validateForm( form ) { if ( !form.elements['newMonitor[Path]'].value ) { errors[errors.length] = ""; } else if ( form.elements['newMonitor[Path]'].value.match( /[\!\*'\(\)\$ ,#\[\]]/) ) { - errors[errors.length] = ""; -} else { -console.log("valid" + form.elements['newMonitor[Path]'].value); + warnings[warnings.length] = ""; } } else if ( form.elements['newMonitor[Type]'].value == 'File' ) { @@ -95,7 +93,7 @@ console.log("valid" + form.elements['newMonitor[Path]'].value); if (form.elements['newMonitor[VideoWriter]'].value == '1' /* Encode */) { var parameters = form.elements['newMonitor[EncoderParameters]'].value.replace(/[^#a-zA-Z]/g, ""); if (parameters == '' || parameters == '#Linesbeginningwith#areacomment#Forchangingqualityusethecrfoption#isbestisworstquality#crf' ) { - errors[errors.length] = ''; + warnings[warnings.length] = ''; } }