Could you give a sample of the generated <li> list?
Best regards,
Balázs Suhajda
On 14 jan 2010, at 17.36, Grant <greatgreatgr...@gmail.com> wrote:
Hello All:
The problem is that whenever I move an item within the sortable list,
that item returns to its original position (no matter what). All of
the proper events are fired and what needs to happen happens, except
for some reason, the browser doesn't cache where the positions of the
sortable items are supposed to be. So when I move <li> item #1 to <li>
item #3's position, <li> item #1 always returns to it's original
position instead of taking the place of <li> item #3.
After a lot of alerting, I've discovered that this 'reversion' happens
once the event beforeStop is called.
Anyone else have this problem?
To explain further, I'll show you some of the code (shortened here for
simplicity). Using the following HTML code:
<div id="panel_1_overlaySwitcher" class="layers">
<div class="categories">
<h3>Move</h3>
<h3>Layer On/Off</h3>
<h3>Opacity</h3>
</div>
<ul id="panel_1_imgType1" class="ui-sortable">
<!-- Elements here are generated by JS -->
</ul>
</div>
I connect .sortable() to the <ul> tag with id "panel_1_imgType1". The
elements are li tags and have <span> elements inside them that act as
handles. Hope that helps.
Thanks,
Grant
--
You received this message because you are subscribed to the Google
Groups "jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.