automatically load modes into bookmark dialog

This commit is contained in:
Jakob Ketterl
2020-05-03 23:56:22 +02:00
parent a6a29b7032
commit 93b8f75cc3
4 changed files with 13 additions and 11 deletions

View File

@ -0,0 +1,10 @@
$.fn.bookmarkDialog = function() {
var $el = this;
return {
setModes: function(modes) {
$el.find('#modulation').html(modes.map(function(m) {
return '<option value="' + m.modulation + '">' + m.name + '</option>';
}).join(''));
}
}
}