From de4cd789aeaa06514bebc90a6ccf1ea4f879f3c6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 12 Sep 2005 05:40:27 +0000 Subject: 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 --- actionpack/lib/action_view/helpers/javascript_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3