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

Use onchange only for radio buttons #5097

Merged

Conversation

ZitaNemeckova
Copy link
Contributor

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1656003

Introduced by #4252

@miq-bot add_label gaprindashvili/yes, hammer/yes, bug

@ZitaNemeckova
Copy link
Contributor Author

@himdel what do you think?

@ZitaNemeckova ZitaNemeckova force-pushed the fix_my_error_in_miq_uis_bindings branch from ae69958 to fd80afa Compare December 18, 2018 10:24
@himdel
Copy link
Contributor

himdel commented Dec 18, 2018

👍 but we should still disable the old behaviour for radio buttons

@ZitaNemeckova
Copy link
Contributor Author

@himdel done

@miq-bot
Copy link
Member

miq-bot commented Dec 18, 2018

Checked commits ZitaNemeckova/manageiq-ui-classic@fd80afa~...f72005a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@ZitaNemeckova
Copy link
Contributor Author

@miq-bot assign @himdel

@himdel
Copy link
Contributor

himdel commented Dec 18, 2018

LGTM, limits the scope of #4252 only to radio buttons, and disables the old behaviour for those.

(checkboxes are already handled that way via data-miq_observe_checkbox)


Looks like the only use of radios with miq_observe is in:

  • app/views/ops/_settings_authentication_tab.html.haml
  • app/views/shared/_playbook_options.html.haml
  • app/views/miq_policy/_action_options.html.haml

@himdel himdel merged commit 4680abf into ManageIQ:master Dec 18, 2018
@himdel himdel added this to the Sprint 101 Ending Dec 17, 2018 milestone Dec 18, 2018
simaishi pushed a commit that referenced this pull request Feb 6, 2019
@simaishi
Copy link
Contributor

simaishi commented Feb 6, 2019

Hammer backport details:

$ git log -1
commit 5135d0b1583b88fd2131cf25ec50e6d84fa96875
Author: Martin Hradil <[email protected]>
Date:   Tue Dec 18 15:45:29 2018 +0100

    Merge pull request #5097 from ZitaNemeckova/fix_my_error_in_miq_uis_bindings
    
    Use onchange only for radio buttons
    
    (cherry picked from commit 4680abf417ab7264d4c5dfddbf175eb4ecdcc479)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1672696

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

Successfully merging this pull request may close these issues.

4 participants