Skip to content

Commit

Permalink
Re-add merch admin badge number detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Jan 20, 2025
1 parent 4117db7 commit 1111e85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uber/templates/merch_admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% set title_text = "Merch Booth Ops" %}
{% block content %}

{% include 'barcode_client.html' %}
{% block adminheader %}

<script type="text/javascript">
Expand Down Expand Up @@ -265,6 +266,12 @@
}

$(function() {
$('body').barcodeField({
targetField: '#badge_num_or_qr_code',
blurOnKeys: ['~', '\\'],
detectBadgeNum: true
});

$('input[type=text],input[type=number]').on('focus', function(event){
var field = event.target;
setTimeout(function(){ field.select(); }, 1);
Expand Down

0 comments on commit 1111e85

Please sign in to comment.