From bb56eb8db26dbae58bc91febc0110aa7b36984a4 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 11 Aug 2021 14:10:52 +0200 Subject: [PATCH] don't highlight for data --- htdocs/lib/MetaPanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/MetaPanel.js b/htdocs/lib/MetaPanel.js index b750883..48416fb 100644 --- a/htdocs/lib/MetaPanel.js +++ b/htdocs/lib/MetaPanel.js @@ -112,7 +112,9 @@ YsfMetaPanel.prototype.update = function(data) { this.setLocation(data['lat'], data['lon'], data['source']); this.setUp(data['up']); this.setDown(data['down']); - this.el.find(".openwebrx-meta-slot").addClass("active"); + if (data['mode'].indexOf('data') < 0) { + this.el.find(".openwebrx-meta-slot").addClass("active"); + } } else { this.clear(); }