closeInfoBox: always enable hotkeys
This commit is contained in:
parent
b103912495
commit
588e4dc3d3
1 changed files with 11 additions and 7 deletions
16
functions.js
16
functions.js
|
@ -1288,13 +1288,17 @@ function closeErrorBox() {
|
||||||
|
|
||||||
function closeInfoBox(cleanup) {
|
function closeInfoBox(cleanup) {
|
||||||
|
|
||||||
if (Element.visible("infoBoxShadow")) {
|
try {
|
||||||
Element.hide("dialog_overlay");
|
|
||||||
Element.hide("infoBoxShadow");
|
|
||||||
|
|
||||||
if (cleanup) $("infoBoxShadow").innerHTML = " ";
|
|
||||||
|
|
||||||
enableHotkeys();
|
enableHotkeys();
|
||||||
|
|
||||||
|
if (Element.visible("infoBoxShadow")) {
|
||||||
|
Element.hide("dialog_overlay");
|
||||||
|
Element.hide("infoBoxShadow");
|
||||||
|
|
||||||
|
if (cleanup) $("infoBoxShadow").innerHTML = " ";
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("closeInfoBox", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue