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 #16163 - Hide spinner for vmware cluster #3760

Closed
wants to merge 1 commit into from

Conversation

xprazak2
Copy link
Contributor

No description provided.

@ares
Copy link
Member

ares commented Aug 23, 2016

[test]

@@ -248,7 +248,7 @@ function vsphereGetResourcePools(item) {
var data = {cluster_id: $(item).val()};
var url = $(item).data('url');
tfm.tools.showSpinner();
selectbox = $('*[id*=resource_pool]');
selectbox = $('*[id=host_compute_attributes_resource_pool]');
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure why using a more specific selector would cause the spinner to hide?
Any select box selected by this will have also been selected by the previous one, and I suspect there was a reason for using a more generalized selector before - perhaps this code is also used on other pages where the select box has a different ID? Even if not, matching on a precise id should be done with $(#id), not $(*[id=id]).

Copy link
Member

Choose a reason for hiding this comment

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

@xprazak2
Copy link
Contributor Author

@tbrisker it was selecting a div as well:

@timogoebel than you for warning about compute profiles page

@tbrisker
Copy link
Member

Code looks good but I don't have a vmware set up to verify the fix. Will merge if someone can test this on vmware.

@timogoebel
Copy link
Member

I'll test this in a week and merge after that if no one has done it before.

@xprazak2: Do you have a vmware setup? I do have some prs open that make vmware better and need someone to take a look. :-)

@xprazak2
Copy link
Contributor Author

@timogoebel: I have access to vmware, I will try to find some time for your PRs.

@ares ares self-assigned this Aug 30, 2016
@ares
Copy link
Member

ares commented Aug 30, 2016

Works nicely, thanks @xprazak2, merged as 105917c

@ares ares closed this Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants