Fixed error after login on IE

The IE does not resend the request body during negotiation, so after
after a successful authentication the server could not find the JSON
request to parse.

The Web UI has been modified to detect this error and resend the
initialization request.

Ticket #1540
This commit is contained in:
Endi S. Dewata
2011-08-03 15:26:54 -05:00
parent 8edd7ed998
commit c5ce14c83a
2 changed files with 63 additions and 14 deletions

View File

@@ -138,6 +138,7 @@ IPA.host_adder_dialog = function(spec)
that.on_error = function(xhr, text_status, error_thrown)
{
var ajax = this;
var command = that.command;
var data = error_thrown.data;
var dialog = null;
@@ -152,7 +153,7 @@ IPA.host_adder_dialog = function(spec)
fqdn: that.get_field('fqdn').save()
}
};
command.on_success(data, text_status, xhr);
command.on_success.call(ajax, data, text_status, xhr);
}
});
} else {