go to preset
This commit is contained in:
parent
ef0f8bf22f
commit
6239736574
|
@ -706,6 +706,16 @@ function init_ptz() {
|
|||
name.val(preset ? preset.name : '')
|
||||
}
|
||||
}).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'))
|
||||
name.val(getPreset(id).name)
|
||||
$('<button>').html('Set')
|
||||
|
|
Loading…
Reference in New Issue
Block a user