re-package code for meta panels into classes

This commit is contained in:
Jakob Ketterl
2021-01-16 19:40:22 +01:00
parent 13215960c4
commit 41f9407024
6 changed files with 156 additions and 97 deletions

View File

@ -165,10 +165,13 @@ DemodulatorPanel.prototype.updatePanels = function() {
modulation = this.getDemodulator().get_modulation();
var showing = 'openwebrx-panel-metadata-' + modulation;
$(".openwebrx-meta-panel").each(function (_, p) {
var metaPanels = $(".openwebrx-meta-panel");
metaPanels.each(function (_, p) {
toggle_panel(p.id, p.id === showing);
});
clear_metadata();
metaPanels.metaPanel().each(function() {
this.clear();
});
};
DemodulatorPanel.prototype.getDemodulator = function() {