Sha256: caabd1f99e84b0211a24a5fc053e2dadd4d82ac5bb3e0f153c2c858bb4ed9cc7
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
bootableRadio = function (item) { const 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) { const selected = $(item).val().toLowerCase(); const 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_kubevirt-0.1.1 | app/assets/javascripts/foreman_kubevirt/kubevirt.js |