Fix expand/collapse on source viewer sidebar folders
This commit is contained in:
parent
ae2aa18d74
commit
df9fea24a5
1 changed files with 3 additions and 3 deletions
|
|
@ -32,10 +32,10 @@ function createDirEntry(elem, parent, fullPath, currentFile, hasFoundFile) {
|
|||
fullPath += elem["name"] + "/";
|
||||
|
||||
name.onclick = () => {
|
||||
if (hasClass(this, "expand")) {
|
||||
removeClass(this, "expand");
|
||||
if (hasClass(name, "expand")) {
|
||||
removeClass(name, "expand");
|
||||
} else {
|
||||
addClass(this, "expand");
|
||||
addClass(name, "expand");
|
||||
}
|
||||
};
|
||||
name.innerText = elem["name"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue