only available ones

This commit is contained in:
Jakob Ketterl 2020-05-03 23:58:12 +02:00
parent 93b8f75cc3
commit e2cacc1fa0

View File

@ -2,7 +2,9 @@ $.fn.bookmarkDialog = function() {
var $el = this; var $el = this;
return { return {
setModes: function(modes) { 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>'; return '<option value="' + m.modulation + '">' + m.name + '</option>';
}).join('')); }).join(''));
} }