Skip to content

Commit 281dfda

Browse files
Mark JessopMark Jessop
authored andcommitted
Update recovery serial field when following a sonde. Make notes area bigger.
1 parent b69234b commit 281dfda

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ <h2><i class="icon-car rfloat"></i>Chase Mode</h2>
295295
<span class="r"><input type="text" id="cc_callsign" style="width: 140px;"/></span>
296296
</div>
297297
<div class="row">
298-
<span><b>Notice: If you enable this, your location will be uploaded to SondeHub; making it publicly visible on the map for up to 12 hours.</b></span>
298+
<span><b>Notice: If you enable this, your location will be uploaded to SondeHub, making it publicly visible on the map for up to 12 hours.</b></span>
299299
</div>
300300
<hr>
301301
<div class="row">
@@ -326,7 +326,7 @@ <h2><i class="icon-car rfloat"></i>Chase Mode</h2>
326326
<h3>Report Recovery</h3>
327327
<hr>
328328
<div class="row">
329-
<span>You can report a recovery here. Enter the serial number (no type code, e.g. 'S1234567'), tick recovered/not recovered, and add some notes. If the sonde is not on the map, type its callsign into the top-left search box and press enter to retrieve historical data. You can then mark it as recovered. Optionally, you can use your location instead of the sonde's last location.</span>
329+
<span>You can report a recovery here. Enter the serial number (e.g. 'S1234567'), tick recovered/not recovered, and add some notes. If the sonde is not on the map, type its callsign into the top-left search box and press enter to retrieve historical data. You can then mark it as recovered. Optionally, you can use your location instead of the sonde's last location.</span>
330330
</div>
331331
<div class="row">
332332
<span><b>Serial</b></span>
@@ -348,7 +348,12 @@ <h3>Report Recovery</h3>
348348
</div>
349349
<div class="row">
350350
<span><b>Notes</b></span>
351-
<span class="r"><input type="text" id="pr_notes" style="width: 140px;"/></span>
351+
</div>
352+
<div class="row">
353+
<span>
354+
<!--<input type="text" id="pr_notes" style="width: 140px;"/>-->
355+
<textarea name="pr_notes" id="pr_notes" style="width:280px;height:60px;"></textarea>
356+
</span>
352357
</div>
353358
<div class="row">
354359
<span><b>Report Result</b></span>

js/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,9 @@ $(window).ready(function() {
10071007
wvar.zoom = true;
10081008
}
10091009

1010+
// Insert the serial number into the recovery reporting serial number textbox
1011+
$("#pr_serial").val(text);
1012+
10101013
clean_refresh(wvar.mode, true, true);
10111014
});
10121015
});

js/tracker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,8 @@ function followVehicle(vcallsign, noPan, force) {
15681568

15691569
updateGraph(vcallsign, true);
15701570
drawLOSPaths(vcallsign);
1571+
1572+
$("#pr_serial").val(vcallsign);
15711573
}
15721574

15731575
if(should_pan) {

0 commit comments

Comments
 (0)