Sha256: 55e4f11347381ce70f4ddc33195b2024e7adb72ee60740fbca3c55e87780f5af
Contents?: true
Size: 916 Bytes
Versions: 8
Compression:
Stored size: 916 Bytes
Contents
bootableRadio = function (item) { disabled = $('[id$=_bootable_true]:disabled:checked:visible'); $('[id$=_bootable_true]').prop('checked', false); if (disabled.length > 0) { disabled.prop('checked', true); } else { $(item).prop('checked', true); } } cniProviderSelected = function (item) { selected = $(item).val().toLowerCase(); networks = $(item).parentsUntil('.fields').parent().find('#networks'); if (selected == "pod") { disableDropdown(networks); } else { enableDropdown(networks); } } function disableDropdown(item) { item.hide(); item.attr('disabled', true); $(item).closest('.removable-item').find('.kubevirt-network').prop('disabled', true); } function enableDropdown(item) { $(item).closest('.removable-item').find('.kubevirt-network').prop('disabled', false); item.attr('disabled', false); item.find(':input').attr('disabled', false); item.show(); }
Version data entries
8 entries across 8 versions & 1 rubygems