From 494da65b9a1d3b83a958ccecb3842ea9a5d6aac0 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 28 Feb 2022 15:46:38 -0500 Subject: [PATCH] Replace use of Function with Recording --- web/skins/classic/views/js/monitor.js.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index 7b06905f7..ec13e98e3 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -78,8 +78,8 @@ function validateForm( form ) { if ( form.elements['newMonitor[VideoWriter]'].value == 2 /* Passthrough */ ) errors[errors.length] = ""; } else if ( form.elements['newMonitor[Type]'].value == 'WebSite' ) { - if ( form.elements['newMonitor[Function]'].value != 'Monitor' && form.elements['newMonitor[Function]'].value != 'None') - errors[errors.length] = ""; + //if ( form.elements['newMonitor[Function]'].value != 'Monitor' && form.elements['newMonitor[Function]'].value != 'None') + //errors[errors.length] = ""; if ( form.elements['newMonitor[Path]'].value.search(/^https?:\/\//i) ) errors[errors.length] = ""; } @@ -156,7 +156,7 @@ function validateForm( form ) { return false; } - if ( (form.elements['newMonitor[Function]'].value != 'Monitor') && (form.elements['newMonitor[Function]'].value != 'None') ) { + if ( (form.elements['newMonitor[Recording]'].value == 'None') ) { if ( (form.elements['newMonitor[SaveJPEGs]'].value == '0') && (form.elements['newMonitor[VideoWriter]'].value == '0') ) { warnings[warnings.length] = ""; }