remove class more frequently
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user