Skip to content

Commit

Permalink
Merge pull request #5 from tatze/master
Browse files Browse the repository at this point in the history
Bug escape for rails > 3.2.8
  • Loading branch information
Slotos committed Dec 7, 2012
2 parents 5c71eaf + d9901f8 commit 68b2108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/formtastic/globalize_inputs.rb
Expand Up @@ -19,7 +19,8 @@ def globalize_inputs(*args, &proc)

linker = self.template.content_tag(:ul, linker, :class => "language-selection")

self.template.content_tag(:div, linker + fields, :class => "language-tabs-#{index}") + self.template.content_tag(:script, "$('.language-tabs-#{index}').tabs();", :type => "text/javascript")
html = self.template.content_tag(:div, linker + fields, :class => "language-tabs-#{index}")
html << self.template.javascript_tag("$('.language-tabs-#{index}').tabs();")
end
end
end

0 comments on commit 68b2108

Please sign in to comment.