!function(s){s("table.posts #the-list, table.pages #the-list").sortable({items:"tr",axis:"y",helper:void 0,update:function(t,e){s.post(ajaxurl,{action:"update-menu-order",order:s("#the-list").sortable("serialize")})}}),s("table.tags #the-list").sortable({items:"tr",axis:"y",helper:void 0,update:function(t,e){s.post(ajaxurl,{action:"update-menu-order-tags",order:s("#the-list").sortable("serialize")})}});jQuery(window).on("load",function(){var i=new Array,t=0;jQuery("#the-list tr:first-child").find("td").each(function(){i[t]=s(this).outerWidth(),t+=1}),jQuery("#the-list").find("tr").each(function(){var e=0;s(this).find("td").each(function(){var t=parseInt(s(this).css("padding-left").replace("px",""))+parseInt(s(this).css("padding-right").replace("px",""));s(this).width(i[e]-t),e+=1})});var e,a=0;0==jQuery("#the-list > tr.no-items").length&&(jQuery("#the-list").parent().find("thead").find("th").each(function(){var t=parseInt(s(this).css("padding-left").replace("px",""))+parseInt(s(this).css("padding-right").replace("px",""));s(this).width(i[a]-t),a+=1}),e=0,jQuery("#the-list").parent().find("tfoot").find("th").each(function(){var t=parseInt(s(this).css("padding-left").replace("px",""))+parseInt(s(this).css("padding-right").replace("px",""));s(this).width(i[e]-t),e+=1}))})}(jQuery);