forked from gitea/gitea
This reverts commit 91f5be889a
.
This commit is contained in:
parent
71e1ebfa60
commit
a17fce31a9
|
@ -8,7 +8,7 @@
|
||||||
{{range .U2FRegistrations}}
|
{{range .U2FRegistrations}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="right floated content">
|
<div class="right floated content">
|
||||||
<button class="ui red tiny button delete-button" modal-id="delete-registration" data-url="{{$.Link}}/u2f/delete" data-id="{{.ID}}">
|
<button class="ui red tiny button delete-button" id="delete-registration" data-url="{{$.Link}}/u2f/delete" data-id="{{.ID}}">
|
||||||
{{$.i18n.Tr "settings.delete_key"}}
|
{{$.i18n.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2959,8 +2959,8 @@ $(() => {
|
||||||
function showDeletePopup() {
|
function showDeletePopup() {
|
||||||
const $this = $(this);
|
const $this = $(this);
|
||||||
let filter = '';
|
let filter = '';
|
||||||
if ($this.attr('modal-id')) {
|
if ($this.attr('id')) {
|
||||||
filter += `#${$this.attr('modal-id')}`;
|
filter += `#${$this.attr('id')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const dialog = $(`.delete.modal${filter}`);
|
const dialog = $(`.delete.modal${filter}`);
|
||||||
|
|
Loading…
Reference in New Issue