only available ones

This commit is contained in:
Jakob Ketterl 2020-05-03 23:58:12 +02:00
parent 93b8f75cc3
commit e2cacc1fa0
1 changed files with 3 additions and 1 deletions

View File

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