Fix prettier complaints

This commit is contained in:
Chris Hunt
2024-02-18 18:26:34 +00:00
parent d276bf8b1d
commit 70252b7a43

View File

@@ -52,7 +52,7 @@ $.when($.ready).then(() => {
}
}); */
let sortableEl = document.getElementById("sortable");
const sortableEl = document.getElementById("sortable");
let sortable;
if (sortableEl !== null) {
// eslint-disable-next-line no-undef
@@ -173,12 +173,12 @@ $.when($.ready).then(() => {
})
.on("click", ".tag", (e) => {
e.preventDefault();
const tag = $(e.target).data('tag')
$('#taglist .tag').removeClass('current')
$(e.target).addClass('current')
$('#sortable .item-container').show()
if (tag !== 'all') {
$('#sortable .item-container:not(.'+tag+')').hide()
const tag = $(e.target).data("tag")
$("#taglist .tag").removeClass("current")
$(e.target).addClass("current")
$("#sortable .item-container").show()
if (tag !== "all") {
$("#sortable .item-container:not(."+tag+")").hide()
}
})
.on("click", "#add-item, #pin-item", (e) => {