$(function(){ $(".modal").colorbox(); $("#test-list").sortable({ placeholder: 'thumb-highlight', handle : '.thumb', update : function () { var order = $('#test-list').sortable('serialize'); $("#innfo").load("/manage/photos/process-sortable.php?what=pics&"+order); } }); $("#album-list").sortable({ placeholder: 'album-highlight', handle : '.thumb', update : function () { var order = $('#album-list').sortable('serialize'); $("#innfo").load("/manage/photos/process-sortable.php?what=album&"+order); } }); $("#cat-list").sortable({ placeholder: 'album-highlight', handle : '.thumb', update : function () { var order = $('#cat-list').sortable('serialize'); $("#innfo").load("/manage/photos/process-sortable.php?what=category&"+order); } }); }); function inlinediv(html) { $.fn.colorbox({open:true,inline:true,width:500,height:300,href:html}); }