Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2217

Show
Ignore:
Timestamp:
09/12/05 05:40:27 (3 years ago)
Author:
david
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/helpers/javascript_helper.rb

    r2191 r2217  
    132132         frequency = options[:frequency] || 10 # every ten seconds by default 
    133133         code = "new PeriodicalExecuter(function() {#{remote_function(options)}}, #{frequency})" 
    134          content_tag("script", code, options[:html_options] || {}
     134         javascript_tag(code
    135135      end 
    136136