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

Fixes #1265: Fix console/power/interface connection validation when selecting a device via live search

This commit is contained in:
Jeremy Stretch
2017-06-14 13:00:36 -04:00
parent 78d74261e9
commit fcacac7c6f
3 changed files with 9 additions and 4 deletions

View File

@@ -43,8 +43,9 @@ $(document).ready(function() {
real_field.empty();
real_field.append($("<option></option>").attr('value', ui.item.value).text(ui.item.label));
real_field.change();
// If the field has a parent helper, reset the parent to no selection
// Disable parent selection fields
$('select[filter-for="' + real_field.attr('name') + '"]').val('');
$('#select select').attr('disabled', 'disabled');
},
minLength: 4,
delay: 500