1
0
forked from GitHub/gf-core

translator: bug fix

My menu hiding hack didn't work in Gecko browsers because of a difference in
the behaviour of the JavaScript setTimeout function.
This commit is contained in:
hallgren
2012-05-16 11:53:27 +00:00
parent ebbee9c096
commit 75144d2f7a

View File

@@ -261,10 +261,10 @@ Translator.prototype.edit_translation=function(i) {
}
function hide_menu(el) {
function disp(s) { el.parentNode.style.display=s||""; }
function disp(s) { el.parentNode.style.display=s; }
if(el) {
disp("none")
setTimeout(disp,500)
setTimeout(function(){disp("")},500)
}
}