Fixed a bug where if you clicked on a link with a z level below the current deepest expanded menu it would fail to register

This commit is contained in:
Niles Rogoff 2016-07-29 12:40:34 -07:00
parent 9537a974e6
commit b17786e3b1
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def rhtml(f, z):
href = ["href='"+f[2]+"'"]
if len(z) > 0:
href = ["style='display: none;'"]
result.append(''.join(["<a class='"+z+"' id='",z,f[1],"' ",*href," onclick='if (z == \""+z+"\") { key({keyCode:"+str(ord(f[1].upper()))+"}) }'>", f[0], "</a>"]))
result.append(''.join(["<a class='"+z+"' id='",z,f[1],"' ",*href," onclick='collapse(\""+z+"\"); key({keyCode:"+str(ord(f[1].upper()))+"})'>", f[0], "</a>"]))
if type(f[2]) != str:
result.append("<span style='position: absolute; left: 200px; top: 0px;'>")
for l in f[2]: