mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
enter working
This commit is contained in:
parent
e097df912e
commit
a9d82bf157
|
@ -95,6 +95,7 @@
|
|||
<div class="col-md-6">
|
||||
<input id="create-token-name" type="text" aria-label="name" class="form-control"
|
||||
name="name"
|
||||
wire:keydown.enter="createToken(name)"
|
||||
{{-- defer because it's submitting as i type if i don't --}}
|
||||
wire:model.defer="name"
|
||||
>
|
||||
|
@ -148,7 +149,7 @@
|
|||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button " class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
|
||||
<h4 class="modal-title">
|
||||
Personal Access Token
|
||||
|
@ -178,5 +179,10 @@
|
|||
$('#modal-create-token').modal('hide');
|
||||
$('#modal-access-token').modal('show');
|
||||
})
|
||||
window.addEventListener("keydown", function (event) {
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</div>
|
Loading…
Reference in a new issue