1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 01:11:28 +00:00

dialog behaviour fixes

This commit is contained in:
Andrew Dolgov
2010-11-17 10:12:50 +03:00
parent 76657c46b8
commit 439caa8b93
3 changed files with 38 additions and 27 deletions

View File

@@ -1230,7 +1230,13 @@ function pref_hotkey_handler(e) {
closeInfoBox();
}
if (dialogs.length > 0 || !hotkeys_enabled) {
var dialog = dijit.byId("infoBox");
var dialog_visible = false;
if (dialog)
dialog_visible = Element.visible(dialog.domNode);
if (dialog_visible || !hotkeys_enabled) {
console.log("hotkeys disabled");
return;
}