]> git.wh0rd.org - tt-rss.git/commitdiff
closeInfoBox: always enable hotkeys
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 8 Oct 2009 08:36:27 +0000 (12:36 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 8 Oct 2009 08:36:27 +0000 (12:36 +0400)
functions.js

index 93592b1bbda860a60c23523af6bb14ceea0b8a6b..1e28f1392c27758358f8f8db427957b4ae660210 100644 (file)
@@ -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;
 }