I am using sortables on a project of mine and I get an error on
Internet Explorer when calling Sortable.create() for a second time in
order to include the freshly-added elements in the sortable.

This is my code:
Sortable.create('toolbar',
{tag:'div',overlap:'horizontal',dropOnEmpty:true,containment:
[{$containment}],constraint:false,onChange:to_change_id, onUpdate:
change_display_final});\n
document.getElementById('index_toolbar').value=Sortable.sequence('toolbar');
\n
document.getElementById('toolbar').style.position='static';
document.getElementById('toolbar').innerHTML =
document.getElementById('toolbar').innerHTML + '<div
id=module_tst>TESTING</div>';
Sortable.create('toolbar',
{tag:'div',overlap:'horizontal',dropOnEmpty:true,containment:
[{$containment}],constraint:false,onChange:to_change_id, onUpdate:
change_display_final});


The error i get is in effects.js on line 53. I am using Scriptaculous
1.7.0.

The bug is like it follows:
before the second call everything works fine. When I call
sortable.create() for a second time the sortable crashes, the only
items that can be dragged being the ones added AFTER the first
sortable.create(), and when I try to drag one that was there before
the first call it crashes and the draggable stays sticked to the mouse
pointer.

Anyone having any ideas?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to