sortable - connectWith not working
I can not get the sortable - connectWith to work with the two lists I
have ...
example url
http://portfolio.ingeniouspro.com/admin/
my code
$(function(){
$('#gallery_landscape').sortable({
connectWith: '.imageList',
revert: true,
stop:function(event, ui) {
$.ajax({
type: 'GET',
url: 'ajax.php',
data: 'action=order&' + $('#gallery_landscape').sortable
('serialize'),
success: function(data){ alert(data); }
});
}
});
$('#gallery_drawing').sortable({
connectWith: '.imageList',
revert: true,
stop:function(event, ui) {
$.ajax({
type: 'GET',
url: 'ajax.php',
data: 'action=order&' + $('#gallery_drawing').sortable
('serialize'),
success: function(data){ alert(data); }
});
}
});
});