closeInfoBox: always enable hotkeys

This commit is contained in:
Andrew Dolgov 2009-10-08 12:36:27 +04:00
parent b103912495
commit 588e4dc3d3
1 changed files with 11 additions and 7 deletions

View File

@ -1288,15 +1288,19 @@ function closeErrorBox() {
function closeInfoBox(cleanup) {
if (Element.visible("infoBoxShadow")) {
Element.hide("dialog_overlay");
Element.hide("infoBoxShadow");
if (cleanup) $("infoBoxShadow").innerHTML = " ";
try {
enableHotkeys();
}
if (Element.visible("infoBoxShadow")) {
Element.hide("dialog_overlay");
Element.hide("infoBoxShadow");
if (cleanup) $("infoBoxShadow").innerHTML = " ";
}
} catch (e) {
exception_error("closeInfoBox", e);
}
return false;
}