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

@ -5,6 +5,7 @@ var Modes = {
setModes:function(json){
this.modes = json.map(function(m){ return new Mode(m); });
this.updatePanels();
$('#openwebrx-dialog-bookmark').bookmarkDialog().setModes(this.modes);
},
getModes:function(){
return this.modes;