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:
Niles Rogoff 2016-06-26 16:53:50 -04:00
parent 5c0890dee0
commit 9e25dcbcb4
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def rjs(f, 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("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("}")
if type(f[2]) != str:
for l in f[2]: