{footer_script require='jquery.ui.sortable'}{literal}
jQuery(document).ready(function(){
jQuery(".catPos").hide();
jQuery(".drag_button").show();
jQuery(".categoryLi").css("cursor","move");
jQuery(".categoryUl").sortable({
axis: "y",
opacity: 0.8,
update : function() {
jQuery("#manualOrder").show();
jQuery("#notManualOrder").hide();
jQuery("#autoOrder").hide();
jQuery("#createAlbum").hide();
},
});
jQuery("#categoryOrdering").submit(function(){
ar = jQuery('.categoryUl').sortable('toArray');
for(i=0;i
{'create a new album'|@translate}
{if count($categories) }| {'apply automatic sort order'|@translate}{/if}