mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-20 22:05:13 +00:00
show dialog and load values into it
This commit is contained in:
parent
b29d3c575d
commit
be21d4c9ac
3 changed files with 82 additions and 2 deletions
|
|
@ -1372,6 +1372,18 @@ function init_bookmarks() {
|
|||
} else {
|
||||
$bookmarkButton.hide();
|
||||
}
|
||||
$bookmarkButton.click(function(){
|
||||
showBookmarkEditDialog();
|
||||
});
|
||||
}
|
||||
|
||||
function showBookmarkEditDialog() {
|
||||
$dialog = $("#openwebrx-dialog-bookmark");
|
||||
$form = $dialog.find("form");
|
||||
$form.find("#name").val("");
|
||||
$form.find("#frequency").val(center_freq + demodulators[0].offset_frequency);
|
||||
$form.find("#modulation").val(demodulators[0].subtype);
|
||||
$dialog.show();
|
||||
}
|
||||
|
||||
var dial_frequencies = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue