mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-17 00:39:32 -06:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user