From cf7715238ac685215de8477305d9aea68386aa58 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 22 Apr 2013 09:42:47 -0400 Subject: [PATCH] change the button types to make capybara finding easier --- lib/formtastic-slug/slug_input.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/formtastic-slug/slug_input.rb b/lib/formtastic-slug/slug_input.rb index d45b7cf..6c1ee0b 100644 --- a/lib/formtastic-slug/slug_input.rb +++ b/lib/formtastic-slug/slug_input.rb @@ -9,9 +9,9 @@ class SlugInput < Formtastic::Inputs::StringInput end def action_buttons - template.button_tag('Edit', 'data-mode' => 'disabled', 'data-action' => 'edit') << - template.button_tag('Update', 'data-mode' => 'enabled', 'data-action' => 'update', :style => 'display: none') << - template.button_tag('Cancel', 'data-mode' => 'enabled', 'data-action' => 'cancel', :style => 'display: none') + template.button_tag('Edit', :type => 'edit', 'data-mode' => 'disabled', 'data-action' => 'edit') << + template.button_tag('Update', :type => 'update', 'data-mode' => 'enabled', 'data-action' => 'update', :style => 'display: none') << + template.button_tag('Cancel', :type => 'cancel', 'data-mode' => 'enabled', 'data-action' => 'cancel', :style => 'display: none') end def input_html_options