Hi,
In the 1.9 RC, foreman_salt's javascript stopped working.
I suspect it has something to do with these new search
bar select things (?).
I deface the Host edit page like this:
https://github.com/theforeman/foreman_salt/blob/master/app/overrides/salt_environment_host_selector.rb
Which still works, I get my Salt environment selector, however the
onchange
method doesn't seem to be called.
This is the relevant Javascript:
https://github.com/theforeman/foreman_salt/blob/master/app/assets/javascripts/foreman_salt/states.js
Any ideas?
Thanks,
···
--
Best Regards,
Stephen Benjamin
Red Hat Engineering
We had a few problems with pulling the ID out of a select2 dropdown as
the style changed, which you've got there on line 7.
Try making this change:
https://github.com/theforeman/foreman/commit/55fd94ad
···
On 17/07/15 04:53, Stephen Benjamin wrote:
> Hi,
>
> In the 1.9 RC, foreman_salt's javascript stopped working.
>
> I suspect it has something to do with these new search
> bar select things (?).
>
> I deface the Host edit page like this:
>
> https://github.com/theforeman/foreman_salt/blob/master/app/overrides/salt_environment_host_selector.rb
>
> Which still works, I get my Salt environment selector, however the
> `onchange` method doesn't seem to be called.
>
> This is the relevant Javascript:
> https://github.com/theforeman/foreman_salt/blob/master/app/assets/javascripts/foreman_salt/states.js
–
Dominic Cleal
Red Hat Engineering