diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-12 05:40:27 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-12 05:40:27 +0000 |
commit | de4cd789aeaa06514bebc90a6ccf1ea4f879f3c6 (patch) | |
tree | e01004c7373d521e145f4869992af20f0510cac2 /actionpack/lib | |
parent | a16528f715f49531c6013dde741fcba8182202b6 (diff) | |
download | rails-de4cd789aeaa06514bebc90a6ccf1ea4f879f3c6.tar.gz rails-de4cd789aeaa06514bebc90a6ccf1ea4f879f3c6.tar.bz2 rails-de4cd789aeaa06514bebc90a6ccf1ea4f879f3c6.zip |
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascript_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index d3c2972b4f..3251cf54d0 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -131,7 +131,7 @@ module ActionView 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 |