Permalink
Browse files

fix the get-data call, open should have been open-flash-chart

  • Loading branch information...
1 parent 14ff973 commit b57bf97e26f87cecf75d8be07d78821362dc94c9 Charles J Snider committed Jan 6, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/open_flash_chart/ofc_ajax.rb
@@ -6,10 +6,10 @@ def periodically_call_function(function, options = {})
ActionView::Base.new.javascript_tag(code)
end
- def js_open_flash_chart_object(div_name, width, height, base="/")
+ def js_open_flash_chart_object(div_name, width, height, base="/", options={})
<<-OUTPUT
<script type="text/javascript">
- swfobject.embedSWF("#{base}open-flash-chart.swf", "#{div_name}", "#{width}", "#{height}", "9.0.0", "expressInstall.swf", {"get-data":"open_data_#{div_name}"});
+ swfobject.embedSWF("#{base}#{options[:open_flash_chart_swf] || "open-flash-chart.swf"}", "#{div_name}", "#{width}", "#{height}", "9.0.0", "expressInstall.swf", {"get-data":"open_flash_chart_data_#{div_name}"});
</script>
#{self.to_open_flash_chart_data(div_name)}
<div id="#{div_name}"></div>

0 comments on commit b57bf97

Please sign in to comment.