Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make periodically_call_remote use type="text/javascript" on script tag

…#2171

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit de4cd789aeaa06514bebc90a6ccf1ea4f879f3c6 1 parent a16528f
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/javascript_helper.rb
View
2  actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -131,7 +131,7 @@ def link_to_remote(name, options = {}, html_options = {})
def periodically_call_remote(options = {})
frequency = options[:frequency] || 10 # every ten seconds by default
code = "new PeriodicalExecuter(function() {#{remote_function(options)}}, #{frequency})"
- content_tag("script", code, options[:html_options] || {})
+ javascript_tag(code)
end
# Returns a form tag that will submit using XMLHttpRequest in the background instead of the regular
Please sign in to comment.
Something went wrong with that request. Please try again.