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

refs #18468 - move compute_resources JS to compute profile index #4282

Merged
merged 1 commit into from Feb 14, 2017

Conversation

domcleal
Copy link
Contributor

The CR JS should always be ready and loaded on the compute profile
index, as the new attributes form is rendered into the existing page
after the profile is created.

Because the new attributes form is loaded via the two-pane #content
replacement, the additional JavaScript tag specified in
compute_profiles/show is not automatically loaded into the page.

This fixes the issue for all compute resources, not only Libvirt. It
also uses the javascript header to properly track the asset with
Turbolinks so it's unloaded later.

The CR JS should always be ready and loaded on the compute profile
index, as the new attributes form is rendered into the existing page
after the profile is created.

Because the new attributes form is loaded via the two-pane #content
replacement, the additional JavaScript tag specified in
compute_profiles/show is not automatically loaded into the page.

This fixes the issue for all compute resources, not only Libvirt. It
also uses the `javascript` header to properly track the asset with
Turbolinks so it's unloaded later.
@mention-bot
Copy link

@domcleal, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bastilian, @ares and @ShimShtein to be potential reviewers.

@bastilian
Copy link
Member

This makes the call to javascript in ovirt/_base.html redundant as well.

@dLobatog dLobatog merged commit 8c1eb62 into theforeman:develop Feb 14, 2017
@dLobatog
Copy link
Member

Thanks @domcleal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants