Skip to content

Commit

Permalink
remove linter warnings from add_card.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tynsh committed Feb 27, 2020
1 parent 715df55 commit de568bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/add_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ <h2 class="mdl-card__title-text">Adding Card for {{ .User.Name }}</h2>
<div class="mdl-card__supporting-text">
<form method="POST">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" name="description" tabindex="1" value="{{ .Description }}"/>
<input class="mdl-textfield__input" type="text" id="description" tabindex="1" value="{{ .Description }}"/>
<label class="mdl-textfield__label" for="description">Beschreibung</label>
</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" name="uid" readonly/>
<input class="mdl-textfield__input" type="text" id="uid" readonly/>
<label class="mdl-textfield__label" for="uid">Swipe Card</label>
</div>
<div class="mdl-card__actions">
Expand All @@ -48,11 +48,11 @@ <h2 class="mdl-card__title-text">Adding Card for {{ .User.Name }}</h2>
</div>

<script type="text/javascript">
var evtSource = new EventSource('/add_card_event');
var eventTarget = document.querySelector('input[name=uid]');
let evtSource = new EventSource('/add_card_event');
let eventTarget = document.querySelector('input[name=uid]');
document.querySelector('input[name="description"]').focus();

evtSource.addEventListener('lock', function(e) {
evtSource.addEventListener('lock', function() {
document.querySelector('div .registration-lock').style.display = "none";
});

Expand Down

0 comments on commit de568bb

Please sign in to comment.