mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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) {
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
$("#spinner").css("display", "none");
|
$("#spinner").css("display", "none");
|
||||||
$("#snmp_browser").html(
|
var htmlError = "";
|
||||||
"<p>Status: " +
|
|
||||||
|
if (XMLHttpRequest.responseText) {
|
||||||
|
htmlError =
|
||||||
|
"<p><b>Status:</b> " +
|
||||||
textStatus +
|
textStatus +
|
||||||
"</p><p>" +
|
"</p><p>" +
|
||||||
"Error: " +
|
|
||||||
errorThrown +
|
|
||||||
"</p><p>" +
|
|
||||||
XMLHttpRequest.responseText +
|
XMLHttpRequest.responseText +
|
||||||
"</p>"
|
"</p>";
|
||||||
);
|
} else {
|
||||||
|
htmlError =
|
||||||
|
"<p><b>Status:</b> " +
|
||||||
|
textStatus +
|
||||||
|
"</p><p>" +
|
||||||
|
"<b>Error:</b> " +
|
||||||
|
errorThrown +
|
||||||
|
"</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#snmp_browser").html(htmlError);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user