1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

RPC API fixes

This commit is contained in:
Jeremy Stretch
2017-03-21 17:24:16 -04:00
parent a36b138efe
commit a5419ecc5c
2 changed files with 9 additions and 3 deletions

View File

@@ -47,7 +47,7 @@
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
url: "{% url 'dcim-api:device_lldp-neighbors' pk=device.pk %}",
url: "{% url 'dcim-api:device-lldp-neighbors' pk=device.pk %}",
dataType: 'json',
success: function(json) {
$.each(json, function(i, neighbor) {
@@ -66,6 +66,9 @@ $(document).ready(function() {
row.addClass('danger');
}
});
},
error: function(xhr) {
alert(xhr.responseText);
}
});
});