From: Andrew Dolgov Date: Thu, 8 Oct 2009 08:36:27 +0000 (+0400) Subject: closeInfoBox: always enable hotkeys X-Git-Tag: 1.3.4~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=588e4dc3d36be03ab404779ee98d97e07f9863c8;p=tt-rss.git closeInfoBox: always enable hotkeys --- diff --git a/functions.js b/functions.js index 93592b1b..1e28f139 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 = " "; + if (Element.visible("infoBoxShadow")) { + Element.hide("dialog_overlay"); + Element.hide("infoBoxShadow"); - enableHotkeys(); + if (cleanup) $("infoBoxShadow").innerHTML = " "; + } + } catch (e) { + exception_error("closeInfoBox", e); } - + return false; }