Skip to content
Browse files

Removed unnecessary 'dt' from the submit button

  • Loading branch information...
1 parent 43043dc commit 7f078f49a6ded915317561add98ccda1db1b03ab @nesquena committed Nov 24, 2008
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/semantic_fields_renderer.rb
View
6 lib/semantic_fields_renderer.rb
@@ -72,14 +72,12 @@ def select_tag(name, option_values, options={})
# places a submit_button in a standardized format with a definition item for a standard form.
#
- # <dt class="button" />
- # <dd class="button"><input id="someid" type = 'submit' /></dd>
+ # <dd class="button"><input id="someid" type ='submit' /></dd>
#
# ex: f.submit_tag "Caption"
#
def submit_tag(label, options={})
- html = tag(:dt, :class => 'button')
- html << content_tag(:dd, :class => 'button') do
+ content_tag(:dd, :class => 'button') do
@super.submit_tag(label, options)
end
end

0 comments on commit 7f078f4

Please sign in to comment.
Something went wrong with that request. Please try again.