diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index 470bb92b8..7a2f17fd3 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -34,17 +34,14 @@ controlOptions[][] = ' - var monitorNames = new Object(); monitorNames[''] = true; function validateForm( form ) { @@ -52,7 +49,7 @@ function validateForm( form ) { if ( form.elements['newMonitor[Name]'].value.search( /[^\w\-\.\(\)\:\/ ]/ ) >= 0 ) errors[errors.length] = ""; - else if ( form.elements.mid.value == 0 && monitorNames[form.elements['newMonitor[Name]'].value] ) + else if ( monitorNames[form.elements['newMonitor[Name]'].value] ) errors[errors.length] = ""; if ( form.elements['newMonitor[AnalysisFPSLimit]'].value && !(parseFloat(form.elements['newMonitor[AnalysisFPSLimit]'].value) > 0 ) )