re-wire digital voice meta panels

This commit is contained in:
Jakob Ketterl 2020-05-03 12:09:18 +02:00
parent 0868e643c9
commit 2f2d52df85
2 changed files with 7 additions and 7 deletions

View File

@ -136,6 +136,13 @@ DemodulatorPanel.prototype.updatePanels = function() {
toggle_panel("openwebrx-panel-js8-message", modulation == "js8");
toggle_panel("openwebrx-panel-packet-message", modulation === "packet");
toggle_panel("openwebrx-panel-pocsag-message", modulation === "pocsag");
modulation = this.getDemodulator().get_modulation();
var showing = 'openwebrx-panel-metadata-' + modulation;
$(".openwebrx-meta-panel").each(function (_, p) {
toggle_panel(p.id, p.id === showing);
});
clear_metadata();
};
DemodulatorPanel.prototype.getDemodulator = function() {

View File

@ -1110,13 +1110,6 @@ function update_pocsag_panel(msg) {
$b.scrollTop($b[0].scrollHeight);
}
function update_digitalvoice_panels(showing) {
$(".openwebrx-meta-panel").each(function (_, p) {
toggle_panel(p.id, p.id === showing);
});
clear_metadata();
}
function clear_metadata() {
$(".openwebrx-meta-panel .openwebrx-meta-autoclear").text("");
$(".openwebrx-meta-slot").removeClass("active").removeClass("sync");