From cb36605899092b9ae4d8b6e1c2e8208485585f21 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Sat, 13 Feb 2021 21:46:34 +0000 Subject: [PATCH] Added CSV-File and some code-cleanup --- html/data/TG_List.csv | 4 ++++ html/js/functions.js | 1 - html/js/version.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 html/data/TG_List.csv diff --git a/html/data/TG_List.csv b/html/data/TG_List.csv new file mode 100644 index 0000000..a5ffa6d --- /dev/null +++ b/html/data/TG_List.csv @@ -0,0 +1,4 @@ +TS,TG,LABEL +1,263,DL Multimode BM +2,8021,Pegasus DMR-DL +2,2625,RLP/SL BM diff --git a/html/js/functions.js b/html/js/functions.js index b226b10..d3f9c88 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -134,7 +134,6 @@ function getRawTarget(logline) { function resolveTarget(timeslot, target) { retval = null; tmpval = talkgroups.filter(function (tg) { return tg[0] == timeslot}); - // and tg.TG == target retval = tmpval.filter(function (tg) { return tg[1] == target.substring(3, target.length)}); if (retval.length > 0) { return retval[0][2]; diff --git a/html/js/version.js b/html/js/version.js index 4e2f8f4..4b81875 100644 --- a/html/js/version.js +++ b/html/js/version.js @@ -1 +1 @@ -var dashboard_version = "2021-02-13 21:34:03"; +var dashboard_version = "2021-02-13 21:46:34";