summaryrefslogtreecommitdiffstats
path: root/install/ui
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-14 13:52:44 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-02-27 10:53:42 +0100
commit61770269d436daa4152c5bb949499497320b2aee (patch)
tree2695195dad7f387b5a3e0da757433edae2a749aa /install/ui
parentf7955abdda854e58c60b74039bbd155f2dc66e75 (diff)
downloadfreeipa-61770269d436daa4152c5bb949499497320b2aee.tar.gz
freeipa-61770269d436daa4152c5bb949499497320b2aee.tar.xz
freeipa-61770269d436daa4152c5bb949499497320b2aee.zip
webui: Focus expand/collapse link in batch_error dialog
Dialog loses focus when the links are clicked making the dialog uncontrollable by keyboard. This patch focuses the link again after expanding/collapsing the error list. Thus keeping the focus in a dialog https://fedorahosted.org/freeipa/ticket/4097 Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui')
-rw-r--r--install/ui/src/freeipa/ipa.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js
index 54cd90cb6..e6f10d8a2 100644
--- a/install/ui/src/freeipa/ipa.js
+++ b/install/ui/src/freeipa/ipa.js
@@ -1730,6 +1730,7 @@ IPA.error_dialog = function(spec) {
errors_container.show();
show_details.hide();
hide_details.show();
+ hide_details.focus();
return false;
});
@@ -1737,6 +1738,7 @@ IPA.error_dialog = function(spec) {
errors_container.hide();
hide_details.hide();
show_details.show();
+ show_details.focus();
return false;
});
}