Merge branch 'ent-7591-mensaje-error-timeout-snmp-en-browser' into 'develop'
Fix format on snmp browser error messages See merge request artica/pandorafms!4276
This commit is contained in:
commit
2e7dadb04e
|
@ -66,16 +66,26 @@ function snmpBrowse() {
|
|||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
$("#spinner").css("display", "none");
|
||||
$("#snmp_browser").html(
|
||||
"<p>Status: " +
|
||||
var htmlError = "";
|
||||
|
||||
if (XMLHttpRequest.responseText) {
|
||||
htmlError =
|
||||
"<p><b>Status:</b> " +
|
||||
textStatus +
|
||||
"</p><p>" +
|
||||
"Error: " +
|
||||
errorThrown +
|
||||
"</p><p>" +
|
||||
XMLHttpRequest.responseText +
|
||||
"</p>"
|
||||
);
|
||||
"</p>";
|
||||
} else {
|
||||
htmlError =
|
||||
"<p><b>Status:</b> " +
|
||||
textStatus +
|
||||
"</p><p>" +
|
||||
"<b>Error:</b> " +
|
||||
errorThrown +
|
||||
"</p>";
|
||||
}
|
||||
|
||||
$("#snmp_browser").html(htmlError);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue