'use strict';$(function(){$('#my-favs ul').sortable({'cursor':'move'});$('#my-favs ul, #my-favs ul *').css({'cursor':'move'});$('#my-favs ul input').css({'cursor':'auto'});$('#favs-form').on('submit',function(){let order=[];$('#my-favs ul li input.position').each(function(){order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1'));});$('input[name=favs_order]')[0].value=order.join(',');return true;});$('#my-favs ul li input.position').hide();});