refactor(web): change filters ids
This commit is contained in:
@@ -31,17 +31,17 @@ $(document).on("dblclick", ".item", function (e) {
|
||||
resp.data.forEach(tanzaku => {
|
||||
$(`#t${tanzaku.id}`).addClass("selected");
|
||||
});
|
||||
if ($("#selected")[0].checked) {
|
||||
if ($("#selection-filter")[0].checked) {
|
||||
$(".list-item:not(.selected)").css("display", "none");
|
||||
} else {
|
||||
$(".list-item:not(.selected)").css("display", "block");
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("input", "#filter", function (e) {
|
||||
$(document).on("input", "#text-filter", function (e) {
|
||||
let filter = $(this).val().toLowerCase();
|
||||
let unfiltered;
|
||||
if ($("#selected")[0].checked) {
|
||||
if ($("#selection-filter")[0].checked) {
|
||||
unfiltered = $(".list-item.selected");
|
||||
} else {
|
||||
unfiltered = $(".list-item");
|
||||
|
||||
@@ -30,7 +30,7 @@ $(document).on("dblclick", ".item", function (e) {
|
||||
resp.data.forEach(sasa => {
|
||||
$(`#s${sasa.id}`).addClass("selected");
|
||||
});
|
||||
if ($("#selected")[0].checked) {
|
||||
if ($("#selection-filter")[0].checked) {
|
||||
$(".list-item:not(.selected)").css("display", "none");
|
||||
} else {
|
||||
$(".list-item:not(.selected)").css("display", "block");
|
||||
|
||||
@@ -71,7 +71,7 @@ $(document).on("click", ".list-item", function (e) {
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("click", "#selected", function (e) {
|
||||
$(document).on("click", "#selection-filter", function (e) {
|
||||
if (this.checked) {
|
||||
$(".list-item:not(.selected)").css("display", "none");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user