Merge pull request #3213 from PiBa-NL/interfaces-gateway-message

This commit is contained in:
Renato Botelho 2016-12-02 14:47:57 -02:00
commit 778f988534

View File

@ -3359,7 +3359,8 @@ events.push(function() {
}
function report_failure(request, textStatus, errorThrown) {
if (textStatus === "error" && request.getResponseHeader("Content-Type") === "text/plain") {
contenttype = ";"+request.getResponseHeader("Content-Type")+";";
if (textStatus === "error" && contenttype.indexOf(";text/plain;") !== -1) {
alert(request.responseText);
} else {
alert("The IPv4 gateway could not be created.");