remove class more frequently
This commit is contained in:
@@ -55,7 +55,10 @@ class Direct extends Guild {
|
|||||||
}
|
}
|
||||||
getHTML() {
|
getHTML() {
|
||||||
const sideContainDiv = document.getElementById("sideContainDiv");
|
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");
|
const searchBox = document.getElementById("searchBox");
|
||||||
if (searchBox) searchBox.textContent = "";
|
if (searchBox) searchBox.textContent = "";
|
||||||
|
|
||||||
|
@@ -1217,7 +1217,10 @@ class Guild extends SnowFlake {
|
|||||||
}
|
}
|
||||||
getHTML() {
|
getHTML() {
|
||||||
const sideContainDiv = document.getElementById("sideContainDiv");
|
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");
|
const searchBox = document.getElementById("searchBox");
|
||||||
if (searchBox) searchBox.textContent = "";
|
if (searchBox) searchBox.textContent = "";
|
||||||
|
|
||||||
|
@@ -886,6 +886,7 @@ class Localuser {
|
|||||||
const div = document.getElementById("sideDiv") as HTMLDivElement;
|
const div = document.getElementById("sideDiv") as HTMLDivElement;
|
||||||
div.innerHTML = "";
|
div.innerHTML = "";
|
||||||
div.classList.remove("searchDiv");
|
div.classList.remove("searchDiv");
|
||||||
|
div.classList.remove("hideSearchDiv");
|
||||||
const guild = this.lookingguild;
|
const guild = this.lookingguild;
|
||||||
if (!guild) return;
|
if (!guild) return;
|
||||||
const channel = this.channelfocus;
|
const channel = this.channelfocus;
|
||||||
@@ -2894,6 +2895,7 @@ class Localuser {
|
|||||||
};
|
};
|
||||||
if (query === "") {
|
if (query === "") {
|
||||||
sideContainDiv.classList.remove("searchDiv");
|
sideContainDiv.classList.remove("searchDiv");
|
||||||
|
sideContainDiv.classList.remove("hideSearchDiv");
|
||||||
sideDiv.innerHTML = "";
|
sideDiv.innerHTML = "";
|
||||||
this.searching = false;
|
this.searching = false;
|
||||||
this.getSidePannel();
|
this.getSidePannel();
|
||||||
|
Reference in New Issue
Block a user