From 226a87a55edadc159db1236a009fabaa52f7c546 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Thu, 18 Feb 2021 17:16:02 +0000 Subject: [PATCH] Added P25 to TG-Lookup Configuration same like YSF... --- html/js/functions.js | 5 ++++- html/js/version.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/html/js/functions.js b/html/js/functions.js index 07f9bfe..d0f060b 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -140,7 +140,10 @@ function resolveTarget(mode, timeslot, target) { tmpval = talkgroups.filter(function (tg) { return tg[0] == mode}); switch (mode) { case "DMR": - tmpval = talkgroups.filter(function (tg) { return tg[1] == timeslot}); + tmpval = tmpval.filter(function (tg) { return tg[1] == timeslot}); + retval = tmpval.filter(function (tg) { return tg[2] == target.substring(3, target.length).trim()}); + break; + case "P25": retval = tmpval.filter(function (tg) { return tg[2] == target.substring(3, target.length).trim()}); break; case "YSF": diff --git a/html/js/version.js b/html/js/version.js index 604705c..d6b3614 100644 --- a/html/js/version.js +++ b/html/js/version.js @@ -1 +1 @@ -var dashboard_version = "2021-02-17 20:58:46"; +var dashboard_version = "2021-02-18 17:16:01";