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

Toolbars - use send_checked, refactor params in miqToolbarOnClick #2398

Merged
merged 6 commits into from
Nov 14, 2017
Merged
15 changes: 8 additions & 7 deletions app/helpers/application_helper/toolbar_builder.rb
Original file line number Diff line number Diff line change
@@ -133,13 +133,14 @@ def build_select_button(bgi, index)
# Set properties for button
def apply_common_props(button, input)
button.update(
:icon => input[:icon],
:color => input[:color],
:name => button[:id],
:hidden => button[:hidden] || !!input[:hidden],
:pressed => input[:pressed],
:onwhen => input[:onwhen],
:data => input[:data]
:color => input[:color],
:data => input[:data],
:hidden => button[:hidden] || !!input[:hidden],
:icon => input[:icon],
:name => button[:id],
:onwhen => input[:onwhen],
:pressed => input[:pressed],
:send_checked => input[:send_checked],
)

button[:enabled] = input[:enabled]