Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from underparnv/feature/form-submit-with-enter
Browse files Browse the repository at this point in the history
Updates Verify QR Code Modal form to allow for the enter key to submit
  • Loading branch information
cretueusebiu committed Apr 26, 2016
2 parents 05f2604 + 100e0e6 commit f245746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/verify-qr-code-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
</div>

<div class="form-group" :class="{'has-error': verifyForm.errors.has('code')}">
<input type="code" class="form-control" name="code" v-model="verifyForm.code" placeholder="Code">
<input type="code" class="form-control" name="code" v-model="verifyForm.code" placeholder="Code"
@keyup.enter="verify"
>
<span class="help-block" v-show="verifyForm.errors.has('code')">
@{{ verifyForm.errors.get('code') }}
</span>
Expand Down

0 comments on commit f245746

Please sign in to comment.