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

cleanup component filters and UI filter forms for device and device type - #2583

This commit is contained in:
John Anderson
2018-11-15 00:42:01 -05:00
parent 3c0181ef35
commit fd9b2f2fda
4 changed files with 113 additions and 90 deletions

View File

@ -110,9 +110,7 @@ $(document).ready(function() {
var conditional = attr.name.split("data-url-conditional-append-")[1].split("__");
var field = $("#id_" + conditional[0]);
var field_value = conditional[1];
console.log($('option:selected', field).attr('api-value'));
if ($('option:selected', field).attr('api-value') === field_value){
console.log(attr.value);
rendered_url = rendered_url + attr.value;
}
}