Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #18611 - don't ask for libvirt password #49

Merged
merged 1 commit into from
May 4, 2017

Conversation

ares
Copy link
Member

@ares ares commented Apr 28, 2017

No description provided.

element.parent().parent().hide();
} else {
element.parent().parent().show();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW you can do simply

element.closest('.form-group').toggle(selected_type != 'libvirt');

$('#foreman_virt_who_configure_config_listing_mode').change(virt_who_update_listing_mode);
$('#foreman_virt_who_configure_config_hypervisor_type').change(virt_who_update_hypervisor_fields);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an onchange callback on the line 31 already. Could you please either extract it into a function and put both .change calls next to each other or put the functions into the anonymous function on the line 31? Just to improve readability.

@ares
Copy link
Member Author

ares commented May 3, 2017

Thanks @tstrachota, I incorporated both comments and rebased the PR. Please take another look.

@tstrachota
Copy link
Member

👍

@tstrachota tstrachota merged commit c80395f into theforeman:master May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants