Fixed bug where clicking on an active tab would not fully collapse it there was two or more layers open beneath it
This commit is contained in:
parent
5c0890dee0
commit
9e25dcbcb4
|
@ -9,7 +9,7 @@ def rjs(f, z):
|
||||||
result.append("var x = document.getElementsByClassName(z);")
|
result.append("var x = document.getElementsByClassName(z);")
|
||||||
result.append("for (var i = 0; i < x.length; i++) { x[i].style.display = 'inline-block'; }")
|
result.append("for (var i = 0; i < x.length; i++) { x[i].style.display = 'inline-block'; }")
|
||||||
result.append("var x = document.getElementById(z);")
|
result.append("var x = document.getElementById(z);")
|
||||||
result.append("x.onclick = function() { key({keyCode: 27}) }")
|
result.append("x.onclick = function() { while(z.length > " + str(len(z)) + ") { key({keyCode: 27}); } }")
|
||||||
result.append("}")
|
result.append("}")
|
||||||
if type(f[2]) != str:
|
if type(f[2]) != str:
|
||||||
for l in f[2]:
|
for l in f[2]:
|
||||||
|
|
Loading…
Reference in New Issue