1
0
Fork 0

Some code cleanup

main
Kim Huebel 4 years ago
parent c2e79f4b70
commit 476ebf2244

@ -55,7 +55,7 @@ function getTimezone() {
} }
function isDMRHost(logline) { function isDMRHost(logline) {
if (logline.charAt(22) == " " ) if (logline.charAt(22) == " ")
return true; return true;
else else
return false; return false;
@ -317,7 +317,6 @@ function getLastHeard(document, event) {
document.getElementById("callsign").innerHTML = callsign; document.getElementById("callsign").innerHTML = callsign;
} }
if (line.indexOf("Id:") > 0 ) { if (line.indexOf("Id:") > 0 ) {
dmrid = line.substring(line.indexOf("Id:") + 4); dmrid = line.substring(line.indexOf("Id:") + 4);
document.getElementById("dmrid").innerHTML = dmrid; document.getElementById("dmrid").innerHTML = dmrid;
@ -485,6 +484,7 @@ function getLastHeard(document, event) {
} }
function getLocalHeard(document, event) { function getLocalHeard(document, event) {
$(document).ready(function() { $(document).ready(function() {
lines = event.data.split("\n"); lines = event.data.split("\n");
lines.forEach(function(line, index, array) { lines.forEach(function(line, index, array) {

Loading…
Cancel
Save