Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Moved hint-class out of the prepend span.
Browse files Browse the repository at this point in the history
  • Loading branch information
danilotorrisi committed Oct 7, 2012
1 parent 9b483c8 commit 8a08a48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/formtastic-bootstrap/inputs/base/wrapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ def bootstrap_wrapping(&block)
control_label_html <<
controls_wrapping do
if options[:prepend]
prepended_input_wrapping do
[template.content_tag(:span, options[:prepend], :class => 'add-on'), yield, hint_html].join("\n").html_safe
prepended_input_wrap = prepended_input_wrapping do
[template.content_tag(:span, options[:prepend], :class => 'add-on'), yield].join("\n").html_safe
end
[prepended_input_wrap , hint_html].join("\n").html_safe
else
[yield, hint_html].join("\n").html_safe
end
Expand Down

0 comments on commit 8a08a48

Please sign in to comment.