JezK
Edit File: term-ordering.min.js
jQuery(function(t){var e="table.wp-list-table",n='.column-handle input[name="term_id"]';0===t(e).find(".column-handle").length&&(t(e).find("tr:not(.inline-edit-row)").append('<td class="column-handle"></td>'),n=".check-column input"),window.wcTracks=window.wcTracks||{},window.wcTracks.recordEvent=window.wcTracks.recordEvent||function(){},t(e).find(".column-handle").show(),t.wc_add_missing_sort_handles=function(){var n=t(e).find("tbody > tr"),i=t(e).find("tbody > tr > td.column-handle").parent();n.length!==i.length&&n.each(function(e,n){i.is(n)||t(n).append('<td class="column-handle"></td>')}),t(e).find(".column-handle").show()},t(document).ajaxComplete(function(e,n,i){n&&4===n.readyState&&200===n.status&&i.data&&(0<=i.data.indexOf("_inline_edit")||0<=i.data.indexOf("add-tag"))&&(t.wc_add_missing_sort_handles(),t(document.body).trigger("init_tooltips"))}),t(e).sortable({items:"tbody tr:not(.inline-edit-row)",cursor:"move",handle:".column-handle",axis:"y",forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"product-cat-placeholder",scrollSensitivity:40,start:function(t,e){e.item.hasClass("alternate")||e.item.css("background-color","#ffffff"),e.item.children("td, th").css("border-bottom-width","0"),e.item.css("outline","1px solid #aaa")},stop:function(t,e){e.item.removeAttr("style"),e.item.children("td, th").css("border-bottom-width","1px")},update:function(i,o){var d,a,r=o.item.find(n).val(),c=o.item.find(".parent").html(),l=o.item.prev().find(n).val(),s=o.item.next().find(n).val();void 0!==l&&(d=o.item.prev().find(".parent").html())!==c&&(l=void 0),void 0!==s&&(a=o.item.next().find(".parent").html())!==c&&(s=void 0),void 0===l&&void 0===s||void 0===s&&a===l||void 0!==s&&d===r?t(e).sortable("cancel"):(window.wcTracks.recordEvent("product_attributes_ordering_term",{is_category:"product_cat"===woocommerce_term_ordering_params.taxonomy?"yes":"no"}),o.item.find(".check-column input").hide(),o.item.find(".check-column").append('<img alt="processing" src="images/wpspin_light.gif" class="waiting" style="margin-left: 6px;" />'),t.post(ajaxurl,{action:"woocommerce_term_ordering",security:woocommerce_term_ordering_params.nonce,id:r,nextid:s,thetaxonomy:woocommerce_term_ordering_params.taxonomy},function(t){"children"===t?window.location.reload():(o.item.find(".check-column input").show(),o.item.find(".check-column").find("img").remove())}),t("table.widefat tbody tr").each(function(){jQuery("table.widefat tbody tr").index(this)%2==0?jQuery(this).addClass("alternate"):jQuery(this).removeClass("alternate")}))}})});