Per Eric’s suggestion, the simple thing to do is to make the
insertion, destroy the sortable, then create the sortable again. The method to
destroy is Sortable.destroy().
Sortable.destroy('left_column');
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tristan
Kelley
Sent: Friday, June 09, 2006 1:44 PM
To: [email protected]
Subject: [Rails-spinoffs] Re: Making an Insertion.After element a
Sortable
Any ideas on making this insert into a draggable?
<p>
<a href="" Insertion.After('left_column',
'<div class=\"section\" id=\"left_column\">Insertion
Test</div>'); return false;">
Click here to insert a new line.
</a>
</p>
Here's some of my sortable code:
// <![CDATA[
sections = ['left_column','right_column'];
Sortable.create('left_column',{tag:'div',dropOnEmpty: true,
containment: sections,constraint:false,only:'blurb',onUpdate:updateRanking});
Sortable.create('right_column',{tag:'div',dropOnEmpty: true,
containment: sections,constraint:false,only:'blurb',onUpdate:updateRanking});
// ]]>