mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
Merge pull request #593 from boarwell/keyboard-focusable
Re: Make the "Create" button focusable with keyboard
This commit is contained in:
commit
d6e48ea2e4
@ -69,7 +69,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col p-1">
|
||||
<select data-width="100%"
|
||||
class="mailbox-select" id="mailboxes" multiple name="mailboxes">
|
||||
class="mailbox-select" id="mailboxes" multiple name="mailboxes" required>
|
||||
{% for mailbox in mailboxes %}
|
||||
<option value="{{ mailbox.id }}" {% if mailbox.id == current_user.default_mailbox_id %}
|
||||
selected {% endif %}>
|
||||
@ -94,7 +94,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col p-1">
|
||||
<span id="submit" class="btn btn-primary mt-1">Create</span>
|
||||
<button type="submit" id="create" class="btn btn-primary mt-1">Create</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -117,7 +117,7 @@
|
||||
}
|
||||
})
|
||||
|
||||
$("#submit").on("click", async function () {
|
||||
$("#create").on("click", async function () {
|
||||
let that = $(this);
|
||||
let mailbox_ids = $(`#mailboxes`).val();
|
||||
let prefix = $('#prefix').val();
|
||||
|
Loading…
Reference in New Issue
Block a user