mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 21:16:27 -06:00
Fixed dynamic selection of device type filter on devices list
This commit is contained in:
parent
7f23cb9bf5
commit
ab30ba1e1b
@ -41,7 +41,7 @@ $(document).ready(function() {
|
|||||||
url: api_url,
|
url: api_url,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (response, status) {
|
success: function (response, status) {
|
||||||
$.each(response, function (index, device_type) {
|
$.each(response["results"], function (index, device_type) {
|
||||||
var option = $("<option></option>").attr("value", device_type.id).text(device_type["model"] + " (" + device_type["instance_count"] + ")");
|
var option = $("<option></option>").attr("value", device_type.id).text(device_type["model"] + " (" + device_type["instance_count"] + ")");
|
||||||
model_list.append(option);
|
model_list.append(option);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user