allowed underscore prefixed unused var
This commit is contained in:
@@ -29,7 +29,7 @@ $(() => {
|
||||
$deleteCheckinModal.modal('show', this);
|
||||
});
|
||||
|
||||
$(document).on('click', '[data-href]', function (event) {
|
||||
$(document).on('click', '[data-href]', function (_event) {
|
||||
location.href = $(this).data('href');
|
||||
});
|
||||
|
||||
@@ -97,7 +97,7 @@ $(() => {
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.card-spoiler-overlay', function (event) {
|
||||
$(document).on('click', '.card-spoiler-overlay', function (_event) {
|
||||
const $this = $(this);
|
||||
$this.siblings('.card-link').removeClass('card-spoiler');
|
||||
$this.remove();
|
||||
|
@@ -59,7 +59,7 @@ new Vue({
|
||||
this.metadata = data;
|
||||
this.metadataLoadState = MetadataLoadState.Success;
|
||||
})
|
||||
.catch((e) => {
|
||||
.catch((_e) => {
|
||||
this.metadata = null;
|
||||
this.metadataLoadState = MetadataLoadState.Failed;
|
||||
});
|
||||
|
@@ -65,7 +65,7 @@
|
||||
modal.data('id', target.data('id'));
|
||||
})
|
||||
.find('.btn-danger')
|
||||
.on('click', function (event) {
|
||||
.on('click', function (_event) {
|
||||
const modal = $('#deleteCheckinModal');
|
||||
const form = modal.find('form');
|
||||
form.attr('action', form.attr('action')?.replace('@', modal.data('id')) || null);
|
||||
|
Reference in New Issue
Block a user