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 66e6b5269d
commit adffb5f872

View File

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