Skip to content

Commit cbcba07

Browse files
Mark JessopMark Jessop
authored andcommitted
More things set using textContent
1 parent bb8c937 commit cbcba07

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/station.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,8 @@ function drawHistorical (data, station) {
216216

217217
html += "<hr style='margin:0px;margin-top:5px'>";
218218
html += "<div style='font-size:11px;'>"
219-
220-
if (landing.hasOwnProperty("uploader_callsign")) {
221-
html += "<div>Last received by: " + landing.uploader_callsign.toLowerCase() + "</div>";
222-
};
219+
html += "<div><b><span class='landing_uploader_callsign'></span></b></div>"
220+
html += "</div>";
223221

224222
div.innerHTML = html;
225223

@@ -228,6 +226,9 @@ function drawHistorical (data, station) {
228226
div.getElementsByClassName("recovery_path")[0].onclick = function(){
229227
showRecoveredMap(serial)
230228
}
229+
if (landing.hasOwnProperty("uploader_callsign")) {
230+
div.getElementsByClassName("landing_uploader_callsign")[0].textContent = "Last received by: " + landing.uploader_callsign.toLowerCase();
231+
};
231232

232233
if (recovered) {
233234
_recovered_text = recovery_info.recovered ? " Recovered" : "Not Recovered";

0 commit comments

Comments
 (0)