Project

General

Profile

« Previous | Next » 

Revision b18aa530

Added by Tomáš Strachota over 9 years ago

Fixes #9325 - preserve compute resource attrs after NIC modal is closed

View differences:

app/assets/javascripts/host_edit_interfaces.js
var modal_window = $('#interfaceModal');
var interface_id = modal_window.data('current-id');
// mark the selected values to preserve them for form hiding
modal_window.find('option:selected').attr('selected', 'selected');
var modal_form = modal_window.find('.modal-body').contents();
if (modal_form.find('.interface_primary').is(':checked')) {
$('#interfaceForms .interface_primary:checked').attr("checked", false);

Also available in: Unified diff