Skip to content

Commit

Permalink
autofocus manual input box
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Dec 2, 2023
1 parent b63dc02 commit 522a95b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/validation/static/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function checkIn(registration_number) {
dataType: "json",
timeout: 120000,
success: function (response) {
document.getElementById('roll_no').focus();
let res = response.status;
if (res) {
// resetProfile();
Expand Down Expand Up @@ -184,6 +185,7 @@ function checkOut(registration_number) {
dataType: "json",
timeout: 120000,
success: function (response) {
document.getElementById('roll_no').focus();
let res = response.status;
if (res) {

Expand Down
2 changes: 1 addition & 1 deletion apps/validation/templates/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h2>QR Code Scanner</h2>

setInterval(function () {
lastScannedBarcode = null;
}, 5000);
}, 10000);
</script>
<script src="../static/info.js"></script>
</body>
Expand Down

0 comments on commit 522a95b

Please sign in to comment.