remove class more frequently
This commit is contained in:
parent
dc90601e23
commit
a823450d7f
3 changed files with 10 additions and 2 deletions
|
@ -55,7 +55,10 @@ class Direct extends Guild {
|
|||
}
|
||||
getHTML() {
|
||||
const sideContainDiv = document.getElementById("sideContainDiv");
|
||||
if (sideContainDiv) sideContainDiv.classList.remove("searchDiv");
|
||||
if (sideContainDiv) {
|
||||
sideContainDiv.classList.remove("searchDiv");
|
||||
sideContainDiv.classList.remove("hideSearchDiv");
|
||||
}
|
||||
const searchBox = document.getElementById("searchBox");
|
||||
if (searchBox) searchBox.textContent = "";
|
||||
|
||||
|
|
|
@ -1217,7 +1217,10 @@ class Guild extends SnowFlake {
|
|||
}
|
||||
getHTML() {
|
||||
const sideContainDiv = document.getElementById("sideContainDiv");
|
||||
if (sideContainDiv) sideContainDiv.classList.remove("searchDiv");
|
||||
if (sideContainDiv) {
|
||||
sideContainDiv.classList.remove("searchDiv");
|
||||
sideContainDiv.classList.remove("hideSearchDiv");
|
||||
}
|
||||
const searchBox = document.getElementById("searchBox");
|
||||
if (searchBox) searchBox.textContent = "";
|
||||
|
||||
|
|
|
@ -886,6 +886,7 @@ class Localuser {
|
|||
const div = document.getElementById("sideDiv") as HTMLDivElement;
|
||||
div.innerHTML = "";
|
||||
div.classList.remove("searchDiv");
|
||||
div.classList.remove("hideSearchDiv");
|
||||
const guild = this.lookingguild;
|
||||
if (!guild) return;
|
||||
const channel = this.channelfocus;
|
||||
|
@ -2894,6 +2895,7 @@ class Localuser {
|
|||
};
|
||||
if (query === "") {
|
||||
sideContainDiv.classList.remove("searchDiv");
|
||||
sideContainDiv.classList.remove("hideSearchDiv");
|
||||
sideDiv.innerHTML = "";
|
||||
this.searching = false;
|
||||
this.getSidePannel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue