12 lines
374 B
JavaScript
12 lines
374 B
JavaScript
$.fn.bookmarkDialog = function() {
|
|
var $el = this;
|
|
return {
|
|
setModes: function(modes) {
|
|
$el.find('#modulation').html(modes.filter(function(m){
|
|
return m.isAvailable();
|
|
}).map(function(m) {
|
|
return '<option value="' + m.modulation + '">' + m.name + '</option>';
|
|
}).join(''));
|
|
}
|
|
}
|
|
} |