Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
breitburg committed May 10, 2024
1 parent d56b44f commit 2bfec13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ document.getElementById('filterForm').addEventListener('submit', function (event
event.preventDefault();

const selectedDate = new Date(document.getElementById('date').value);
const rNumber = document.getElementById('rNumber').value;
const rNumberField = document.getElementById('rNumber');
let rNumber = rNumberField.value;

// Check if the r-number starts with 'r' and add it if it doesn't
if (!rNumber.startsWith('r')) {
document.getElementById('rNumber').value = 'r' + rNumber;
rNumber = `r${rNumber}`;
rNumberField.value = rNumber;
}

// Check if the checkbox is checked
Expand Down

0 comments on commit 2bfec13

Please sign in to comment.