Hello,
I'm using WebHelpers' sortable_element() function to create draggable
lists items. My items are serialized and sent to the server correctly.
I have the following code in my template:
<div id="slot_list">
<ul id="playlist">
<li>...</li>
<li>...</li>
<li>
<ul>
<li>...</li>
<li>...</li>
</ul>
</li>
</ul>
${h.sortable_element("playlist",
url=h.url_for(controller="slots", action="move", id=c.playlist.id),
containement=c.containers,
dropOnEmpty=True,
tree=True,
complete=h.evaluate_remote_response())}
</div>
As you can see, my sortable_element() has a "complete" option set to
evaluate the server's reponse. The server sends back the updated *inner*
content of the "slot_list" element. The content is correctly updated but
I can no longer drag my items. I also tried taking the sortable JS code
*outside* the DIV "slot_list" so it doesn't get updated in the process
but I get the same behaviour.
Tested with IE 7, FF 2 and Opera 9.23.
Any idea on how I could fix this ?
Regards,
--
Alexandre CONRAD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---