fix saving over last detector filter when closing and reopening filter window

build-default-monitor-config-from-definitions
Moe 2020-05-26 23:16:55 -07:00
parent 8d50e0888e
commit 4e45668ef3
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ $.detectorFilters.getSelected = function(){
}
$.detectorFilters.drawOptions = function(){
var dFilters = $.detectorFilters.getCurrent()
$.detectorFilters.f.find('[name="id"]').val($.ccio.gid(5))
$('#detector_filters optgroup').empty()
$.each(dFilters,function(n,dFilter){
$.ccio.tm('option',{auth_token:$user.auth_token,id:dFilter.id,name:dFilter.filter_name},'#detector_filters optgroup')

View File

@ -44,7 +44,7 @@ $.aM.generateDefaultMonitorSettings = function(){
"skip_ping": null,
"is_onvif": null,
"onvif_port": "",
"primary_input": null,
"primary_input": "0:0",
"aduration": "1000000000",
"probesize": "1000000000",
"stream_loop": "0",