go to preset

This commit is contained in:
j 2020-12-05 13:02:55 +01:00
parent ef0f8bf22f
commit 6239736574

View File

@ -706,6 +706,16 @@ function init_ptz() {
name.val(preset ? preset.name : '') name.val(preset ? preset.name : '')
} }
}).appendTo($('body')) }).appendTo($('body'))
$('<button>').html('Go')
.appendTo($('body')).on({
click: function() {
api('camera', {
'fast_preset': {id: id}
}, function(response) {
//console.log(response)
})
}
})
var name = $('<input>').appendTo($('body')) var name = $('<input>').appendTo($('body'))
name.val(getPreset(id).name) name.val(getPreset(id).name)
$('<button>').html('Set') $('<button>').html('Set')