jquery sortable scroll problem
- by Sam Vloeberghs
Hi
I'm having problems using the sortable function of jQ:uery UI.
The scroll doesn't seem to work..
If the second list ( lists are created on the table rows in a tbody and each tbody is connect ) isn't visible I want it to be possible to scroll towards it for dropping my table row.
This is my HTML set up:
<ul>
<li>
<ul>
<li>
<table class="treeleerling">
<tbody class="oder0">
<tr class="suborder0">
</tr>
<tr class="sub1order">
</tr>
</tbody>
</table>
</li>
</ul>
</li>
<li>
<ul>
<li>
<table class="treeleerling">
<tbody class="oder1">
<tr class="suborder0">
</tr>
<tr class="suborder1">
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
And jQuery code
$(document).ready(function() {
$("#left tbody").sortable({
connectWith : '#left tbody',
scroll : true,
scrollSensitivity: 40,
});
});
The sorting works fine, but the scrolling doesnt.. I'm doing something wrong or what? Plz help and advice.. Thx in advance!