<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,8 @@ Provides helper methods and options for easily adding graphical or textual &quot;indi
 See the examples below for usage.  All remote rails methods wrap the &lt;tt&gt;remote_function&lt;/tt&gt; method, so the same options that work for &lt;tt&gt;remote_function&lt;/tt&gt; will work for &lt;tt&gt;remote_form_for&lt;/tt&gt;, etc.
 
 == Updates
+Feb 2, 2008
+- if using :disable_form =&gt; true, re-disable any form fields that were already disabled
 
 Dec 13, 2007
 - Fixed to work with rails 2.0.1</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -193,7 +193,13 @@ module ActionView::Helpers::PrototypeHelper
 
     if options.delete(:disable_form)
       # we can't disable using :before because disabled fields aren't serialized, must use :after
-      merge_option_values! options, {:before =&gt; 'var form = this', :complete =&gt; 'Form.enable(form)', :after =&gt; 'Form.disable(form)'}
+      merge_option_values! options, {
+        :before =&gt; 'var form = $(this), disabled_elems = []',
+        # save form elements that are already disabled
+        :after =&gt; &quot;disabled_elems = form.select(':disabled'); Form.disable(form)&quot;,
+        # re-disable any previously disabled elements
+        :complete =&gt; &quot;Form.enable(form); disabled_elems.invoke('disable')&quot;
+      }
     end
     
     form_remote_tag_old(options, &amp;block)</diff>
      <filename>lib/remote_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>182aa36806ce5d388b143b7b0a5fd40579b78a6c</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Kaspick</name>
    <email>andrew@redlinesoftware.com</email>
  </author>
  <url>http://github.com/redlinesoftware/remote_helpers/commit/a9f0f0a520b067e44daf56575bb2e50dabdf8566</url>
  <id>a9f0f0a520b067e44daf56575bb2e50dabdf8566</id>
  <committed-date>2008-02-01T22:45:17-08:00</committed-date>
  <authored-date>2008-02-01T22:45:17-08:00</authored-date>
  <message>:disable_form bug fix</message>
  <tree>dd03e9c3a3b8929119e24f0f17313212eeadf884</tree>
  <committer>
    <name>Andrew Kaspick</name>
    <email>andrew@redlinesoftware.com</email>
  </committer>
</commit>
