closeInfoBox: always enable hotkeys

master
Andrew Dolgov 15 years ago
parent b103912495
commit 588e4dc3d3

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

Loading…
Cancel
Save