|
|
@ -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') |
|
|
|