re-enabling disabled sortables?

re-enabling disabled sortables?


hello jquery friends,

I have a slightly strange situation here where in jquery-ui pre-1.6, this worked but with jquery-ui 1.6 or later, I can't seem to re-enable a disabled sortable.

For example, say we have the following HTML fragment
  1.   <ul id="foo">
        <li><div>one</div>
        <li><div>two</div>
      </ul>




and this bit of javascript :
  1. jQuery(document).ready(function() {
       jQuery("#foo").sortable();
       jQuery("#foo").sortable("disable");
       jQuery("#foo").sortable();
    });




The sortable will not be sortable.  But if we take out the disable, it will come back to life (obviously).  Help?

Thanks,
eMax