<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+v0.8.14. Removed use of all Rails JS helpers, this fixes an issue when jrails is used in the app (Thanks, Chris Zelenak) 
+
 v0.8.12. Added some inline branding.
 
 v0.8.11. Signup and login for the TuneUp hosted service is now only required if the user wants to share a run (privately or publicly).</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+* 2008-09-03: Chris Zelenak; pointed us in the right direction: a bug with tuneup + jrails
+
 * 2008-07-21: Bryan Liles; merged fallback log dir code from git://github.com/bryanl/fiveruns_tuneup.git (master:e5838f47f)
 
 * 2008-06-14: Howard Rauscher; merged javascript sandboxing code from git://github.com/howardr/fiveruns_tuneup.git (master:8cc558dbe)
\ No newline at end of file</diff>
      <filename>CONTRIBUTORS</filename>
    </modified>
    <modified>
      <diff>@@ -75,7 +75,7 @@ module Fiveruns
 
       MAJOR = 0
       MINOR = 8
-      TINY  = 13
+      TINY  = 14
 
       # The current version as a Version instance
       CURRENT = new(MAJOR, MINOR, TINY)</diff>
      <filename>lib/fiveruns/tuneup/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,9 +31,9 @@ class TuneupController &lt; ActionController::Base
   end
   
   def register
-    render(:update) do |p| 
-      p['tuneup-panel'].hide
-      p.insert_html(:bottom, 'tuneup-content', :partial =&gt; 'tuneup/panel/register.html.erb')
+    render :update do |page| 
+      page &lt;&lt; &quot;$('tuneup-panel').hide();&quot;
+      page &lt;&lt; %[new Insertion.Bottom('tuneup-content', &quot;#{escape_javascript(render(:partial =&gt; 'tuneup/panel/register.html.erb'))}&quot;);]
     end
   end
   
@@ -45,7 +45,7 @@ class TuneupController &lt; ActionController::Base
     end
     render :update do |page|
       if api_key
-        page.replace('tuneup-save-link', link_to_upload)
+        page &lt;&lt; &quot;$('tuneup-save-link').replace('#{escape_javascript(link_to_upload)}');&quot;
         page &lt;&lt; redisplay_last_run(false)
       else
         page &lt;&lt; tuneup_show_flash(:error,
@@ -103,7 +103,9 @@ class TuneupController &lt; ActionController::Base
   
   def collect(state)
     Fiveruns::Tuneup.collecting = state
-    render(:update) { |p| p['tuneup-panel'].replace(render(:partial =&gt; 'tuneup/panel/show.html.erb')) }
+    render :update do |page|
+      page &lt;&lt; %[$('tuneup-panel').update(&quot;#{escape_javascript(render(:partial =&gt; 'tuneup/panel/show.html.erb'))}&quot;)]
+    end
   end
 
   def find_config</diff>
      <filename>lib/tuneup_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -172,8 +172,8 @@ module TuneupHelper #:nodoc:
   
   def tuneup_reload_panel
     update_page do |page|
-      page['tuneup-flash'].removeClassName('tuneup-show');
-      page['tuneup-content'].replace_html(render(:partial =&gt; &quot;tuneup/panel/show.html.erb&quot;))
+      page &lt;&lt; &quot;$('tuneup-flash').removeClassName('tuneup-show');&quot;
+      page &lt;&lt; %[$('tuneup-content').update(&quot;#{escape_javascript(render(:partial =&gt; 'tuneup/panel/show.html.erb'))}&quot;);]
       page &lt;&lt; 'TuneUp.adjustAbsoluteElements(_document.body);'
       page &lt;&lt; 'TuneUp.adjustFixedElements();'
     end
@@ -182,12 +182,12 @@ module TuneupHelper #:nodoc:
   def tuneup_show_flash(type, locals)
     types = [:error, :notice].reject { |t| t == type }
     update_page do |page|
-      page['tuneup-flash'].replace_html(render(:partial =&gt; 'flash.html.erb', :locals =&gt; locals.merge(:type =&gt; type)))
-      page['tuneup-flash'].addClassName('tuneup-show');
+      page &lt;&lt; %[$('tuneup-flash').update(&quot;#{escape_javascript(render(:partial =&gt; 'flash.html.erb', :locals =&gt; locals.merge(:type =&gt; type)))}&quot;);]
+      page &lt;&lt; &quot;$('tuneup-flash').addClassName('tuneup-show')&quot;
       types.each do |other_type|
-        page['tuneup-flash'].removeClassName(&quot;tuneup-#{other_type}&quot;)
+        page &lt;&lt; &quot;$('tuneup-flash').removeClassName('tuneup-#{other_type}')&quot;
       end
-      page['tuneup-flash'].addClassName(&quot;tuneup-#{type}&quot;);
+      page &lt;&lt; &quot;$('tuneup-flash').addClassName('tuneup-#{type}')&quot;
       page &lt;&lt; 'TuneUp.adjustAbsoluteElements(_document.body);'
       page &lt;&lt; 'TuneUp.adjustFixedElements();'
     end</diff>
      <filename>lib/tuneup_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>21c8e6844a72dbe8f50bee92953aa52523ecafd6</id>
    </parent>
  </parents>
  <author>
    <name>Eric Falcao</name>
    <email>efalcao@gmail.com</email>
  </author>
  <url>http://github.com/fiveruns/fiveruns_tuneup/commit/5715182f2c6b48fa7b0558f334011361c2826be0</url>
  <id>5715182f2c6b48fa7b0558f334011361c2826be0</id>
  <committed-date>2008-09-03T10:37:42-07:00</committed-date>
  <authored-date>2008-09-03T10:37:42-07:00</authored-date>
  <message>removed use of rails js helpers to prevent issues with jrails. thank you Chris Zelenak</message>
  <tree>5278ac52982f4783a6c82d3bd7a297b3905a3500</tree>
  <committer>
    <name>Eric Falcao</name>
    <email>efalcao@gmail.com</email>
  </committer>
</commit>
