Sindbad~EG File Manager
!function(e){e(document).ready(function(){const t=parseInt(simple_taxonomy_ordering_data.paged)>0?(parseInt(simple_taxonomy_ordering_data.paged)-1)*parseInt(e("#"+simple_taxonomy_ordering_data.per_page_id).val()):0,a=e("#the-list");a.find("tr:first-child").hasClass("no-items")||a.sortable({placeholder:"yikes-drag-drop-tax-placeholder",axis:"y",start:function(t,a){const o=e(a.item[0]);o.index(),o.children("th,td").filter(":visible").length;e(".yikes-drag-drop-tax-placeholder").css("height",o.css("height")).css("display","flex").css("width","0")},update:function(o,r){const n=e(r.item[0]);n.find('input[type="checkbox"]').hide().after('<img src="'+simple_taxonomy_ordering_data.preloader_url+'" class="yikes-simple-taxonomy-preloader" />');const i=[];a.find("tr.ui-sortable-handle").each(function(){const t=e(this),a={term_id:t.attr("id").replace("tag-",""),order:parseInt(t.index())+1};i.push(a)});const s={action:"yikes_sto_update_taxonomy_order",taxonomy_ordering_data:i,base_index:t,term_order_nonce:simple_taxonomy_ordering_data.term_order_nonce};e.ajax({type:"POST",url:window.ajaxurl,data:s,dataType:"JSON",success:function(t){console.log(t),e(".yikes-simple-taxonomy-preloader").remove(),n.find('input[type="checkbox"]').show()}})}})})}(jQuery);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists