Problem on Firefox and :disable_with on remote forms (ajax) when using jQuery


I'm not sure if I found a bug, or if I'm doing something wrong. Here
is what happens:

We're using Rails 3.0.1 with jQuery instead of Prototype. When we
create a simple ajax form (using :remote => true) and
use :disable_with on the submit button, it works.

As a result of the Ajax call we use Javascript to replace the form by
another partial. Because page.replace does not work with jQuery, we're
doing this:

=== response.js.erb ================
$('#container_to_be_replaced').html('<%= escape_javascript
render :partial => 'form' %>');