re-wire digital voice meta panels
This commit is contained in:
parent
0868e643c9
commit
2f2d52df85
@ -136,6 +136,13 @@ DemodulatorPanel.prototype.updatePanels = function() {
|
|||||||
toggle_panel("openwebrx-panel-js8-message", modulation == "js8");
|
toggle_panel("openwebrx-panel-js8-message", modulation == "js8");
|
||||||
toggle_panel("openwebrx-panel-packet-message", modulation === "packet");
|
toggle_panel("openwebrx-panel-packet-message", modulation === "packet");
|
||||||
toggle_panel("openwebrx-panel-pocsag-message", modulation === "pocsag");
|
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() {
|
DemodulatorPanel.prototype.getDemodulator = function() {
|
||||||
|
@ -1110,13 +1110,6 @@ function update_pocsag_panel(msg) {
|
|||||||
$b.scrollTop($b[0].scrollHeight);
|
$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() {
|
function clear_metadata() {
|
||||||
$(".openwebrx-meta-panel .openwebrx-meta-autoclear").text("");
|
$(".openwebrx-meta-panel .openwebrx-meta-autoclear").text("");
|
||||||
$(".openwebrx-meta-slot").removeClass("active").removeClass("sync");
|
$(".openwebrx-meta-slot").removeClass("active").removeClass("sync");
|
||||||
|
Loading…
Reference in New Issue
Block a user