From 57e6679cf508c71449bf85378810f026f881b02e Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 26 Jul 2023 10:33:10 +0000 Subject: [PATCH] since kHZ is no longer part of the table, substring isn't needed --- assets/js/sections/bandmap_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/sections/bandmap_list.js b/assets/js/sections/bandmap_list.js index 53e03e31..28e104aa 100644 --- a/assets/js/sections/bandmap_list.js +++ b/assets/js/sections/bandmap_list.js @@ -76,7 +76,7 @@ $(function() { // var table=$('.spottable').DataTable(); table.rows().every(function() { var d=this.data(); - var distance=Math.abs(parseInt(d[1].substring(0,d[1].length-4))-qrg); + var distance=Math.abs(parseInt(d[1])-qrg); if (distance<=20) { distance++; alpha=(.5/distance);