-
Notifications
You must be signed in to change notification settings - Fork 982
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
Conversation
[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]'); |
There was a problem hiding this comment.
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])
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5daef23
to
63458d3
Compare
@tbrisker it was selecting a div as well: @timogoebel than you for warning about compute profiles page |
63458d3
to
46a40ce
Compare
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. |
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. :-) |
@timogoebel: I have access to vmware, I will try to find some time for your PRs. |
No description provided.