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>
This commit is contained in:
Petr Vobornik
2014-01-14 13:52:44 +01:00
committed by Petr Viktorin
parent f7955abdda
commit 61770269d4

View File

@@ -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;
});
}