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:
parent
9537a974e6
commit
b17786e3b1
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue