Revision 501853b5
Added by Dominic Cleal over 8 years ago
app/assets/javascripts/host_edit_interfaces.js | ||
---|---|---|
$('#interfaceForms .interface_provision:checked').attr("checked", false);
|
||
}
|
||
|
||
modal_form.find('select').select2('destroy')
|
||
var interface_hidden = get_interface_hidden(interface_id);
|
||
interface_hidden.html('');
|
||
interface_hidden.append(modal_form);
|
Also available in: Unified diff
fixes #11473 - remove re-init of domain select2 on env selection
After an environment was selected, the reloadOnAjaxComplete function
re-initialised every select2, but other dropdowns triggered
onContentLoad which excluded those with the without_select class.
Change reloadOnAjaxComplete to be consistent and also explicitly
re-init the subnet dropdown when the domain dropdown causes it to
change.
Also destroy select2 fields before storing the interface in the
"hidden" storage, allowing it to be re-initialised when the modal
is displayed again.