summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-08 12:36:27 +0400
committerAndrew Dolgov <[email protected]>2009-10-08 12:36:27 +0400
commit588e4dc3d36be03ab404779ee98d97e07f9863c8 (patch)
tree3605614d9ae3f641dc5b927c82a1e98ed69d901b /functions.js
parentb103912495dd676b7cb1cd07b3099c4fefc297d1 (diff)
closeInfoBox: always enable hotkeys
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/functions.js b/functions.js
index 93592b1bb..1e28f1392 100644
--- a/functions.js
+++ b/functions.js
@@ -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 = "&nbsp;";
+ if (Element.visible("infoBoxShadow")) {
+ Element.hide("dialog_overlay");
+ Element.hide("infoBoxShadow");
- enableHotkeys();
+ if (cleanup) $("infoBoxShadow").innerHTML = "&nbsp;";
+ }
+ } catch (e) {
+ exception_error("closeInfoBox", e);
}
-
+
return false;
}