This commit is contained in:
parent
4c840bf318
commit
a3479bcf8b
@ -23,7 +23,7 @@
|
||||
<filter-box id="filterBox">
|
||||
<border-bar>
|
||||
<popup-title>Filter by: </popup-title>
|
||||
<popup-close onclick="filterBox.classList.toggle('animate')" >×</popup-close>
|
||||
<popup-close onclick="filterBox.style.display = 'none';" >×</popup-close>
|
||||
</border-bar>
|
||||
<popup-content id="filterContent">
|
||||
<div class="popup-section">
|
||||
|
@ -15,6 +15,7 @@ let statusNameMatch = [];
|
||||
const searchBox = document.querySelector("#searchbox");
|
||||
const settingsPopup = document.querySelector("#settingsPopup");
|
||||
const filterBox = document.querySelector("#filterBox");
|
||||
const filterContent = document.querySelector("#filterContent");
|
||||
const settingsCog = document.querySelector("#settingscog");
|
||||
const filterFunnel = document.querySelector("#filterFunnel");
|
||||
const tasksContent = document.querySelector("content");
|
||||
@ -184,6 +185,15 @@ function Setup(){
|
||||
}
|
||||
Setup();
|
||||
|
||||
function ToggleFilterBox() {
|
||||
if (filterBox.style.display == 'none') {
|
||||
filterBox.style.display = 'flex';
|
||||
} else {
|
||||
filterBox.style.display = 'none';
|
||||
}
|
||||
filterContent.scrollTop = 0;
|
||||
}
|
||||
|
||||
function ToggleFilterConnector(connector, event) {
|
||||
//console.log("Initial Array:");
|
||||
//console.log(connectorMatch);
|
||||
@ -508,7 +518,7 @@ settingsCog.addEventListener("click", () => {
|
||||
});
|
||||
|
||||
filterFunnel.addEventListener("click", () => {
|
||||
filterBox.classList.toggle("animate");
|
||||
ToggleFilterBox();
|
||||
});
|
||||
|
||||
settingKomgaUrl.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings(); });
|
||||
|
@ -95,10 +95,6 @@ filter-box {
|
||||
height: 600px;
|
||||
}
|
||||
|
||||
filter-box.animate {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
filter-box border-bar popup-title{
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user