Close host adder dialog before showing 4304 dialog

The adder dialog window stayed opened but not visible. This patch closes it.

https://fedorahosted.org/freeipa/ticket/6050

Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
This commit is contained in:
Pavel Vomacka 2016-07-11 14:39:54 +02:00 committed by Martin Basti
parent dc62dd8c90
commit 3ba3080dfe

View File

@ -976,6 +976,7 @@ rpc.create_4304_error_handler = function(adder_dialog) {
var dialog = null;
if (data && data.error && data.error.code === 4304) {
adder_dialog.close();
dialog = IPA.message_dialog({
name: 'error_4304_info',
message: data.error.message,