diff --git a/web/skins/classic/views/js/monitor.js b/web/skins/classic/views/js/monitor.js index a50f94407..f915e83fb 100644 --- a/web/skins/classic/views/js/monitor.js +++ b/web/skins/classic/views/js/monitor.js @@ -612,7 +612,8 @@ function random_WebColour() { function buffer_setting_oninput(e) { const max_image_buffer_count = document.getElementById('newMonitor[MaxImageBufferCount]'); const pre_event_count = document.getElementById('newMonitor[PreEventCount]'); - if (parseInt(max_image_buffer_count.value) && + if (parseInt(max_image_buffer_count.value) + && (parseInt(pre_event_count.value) > parseInt(max_image_buffer_count.value)) ) { if (this.id == 'newMonitor[PreEventCount]') { @@ -716,7 +717,7 @@ function update_players() { ((-1 != key.indexOf('rtsp2web')) && !rtsp2web_enabled) || ((-1 != key.indexOf('janus')) && !janus_enabled) - ) { + ) { console.log("not adding ", key, go2rtc_enabled, rtsp2web_enabled, janus_enabled); } else { dropdown.append($j('').attr('value', key).text(entry));