only available ones
This commit is contained in:
parent
93b8f75cc3
commit
e2cacc1fa0
@ -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(''));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user