Skip to content

Commit

Permalink
fixed mismatched msg number IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojronatron committed Aug 6, 2023
1 parent 6f64171 commit 4f62c89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Bigfoot-Bib-Report-Initial.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
var eventTitleFormatted = document.getElementById('EventTitle');
localStorage.setItem('RTrackertitle', eventTitleFormatted.value);
var msgNumFormatted = document.getElementById('MessageNumber');
localStorage.setItem('RTrackermsgNum', msgNumFormatted.value);
localStorage.setItem('MessageNumber', msgNumFormatted.value);
var locationLong = lengthenLocation(locationFormatted.value);
var regulartitle =
document.getElementById('EventTitle').value +
Expand Down Expand Up @@ -50,7 +50,7 @@
const storedAddress = localStorage.getItem('RTrackeradd');
const storedLocation = localStorage.getItem('RTrackerloc');
const storedTitle = localStorage.getItem('RTrackertitle');
const storedMsgNumber = localStorage.getItem('RTrackermsgNum');
const storedMsgNumber = localStorage.getItem('MessageNumber');

if (document.getElementById('address').value == '' && storedAddress != '') {
document.getElementById('address').value = storedAddress;
Expand Down Expand Up @@ -83,7 +83,7 @@
// end suspected bug
var storedTitle = localStorage.getItem('RTrackertitle');
document.forms[0].EventTitle.value = storedTitle;
var storedMsgNumber = localStorage.getItem('RTrackermsgNum');
var storedMsgNumber = localStorage.getItem('MessageNumber');
document.forms[0].MessageNumber.value = storedMsgNumber;
var locationLong = lengthenLocation(storedLocation);
var regulartitle =
Expand Down Expand Up @@ -593,7 +593,7 @@

function incrementMsgNum() {
const formMsgNum = Number.parseInt(document.getElementById('MessageNumber').value, 10);
const lsMsgNum = Number.parseInt(localStorage.getItem('RTrackermsgNum'), 10);
const lsMsgNum = Number.parseInt(localStorage.getItem('MessageNumber'), 10);
const incrMsgNum = formMsgNum ? formMsgNum + 1 : 1;
document.getElementById('MessageNumber').value = incrMsgNum;
store();
Expand Down Expand Up @@ -921,7 +921,7 @@
</div>
<div class="block-line-div">
<label for="MessageNumber">Message #</label>
<input name="MessageNumber" type="text" id="MessageNumber" maxlength="3" style="max-width: 3em;" onchange="store();" placeholder="1" />
<input name="MessageNumber" type="text" id="MessageNumber" maxlength="3" style="max-width: 3em;" onchange="store();" />
<input name="incrMsgNum" type="button" id="incrMsgNum" value="increment" onclick="incrementMsgNum();" />
<!-- invisible label that screen readers can still use -->
<label for="incrMsgNum" class="screen-reader">Increment</label>
Expand Down

0 comments on commit 4f62c89

Please sign in to comment.