JezK
Edit File: wc-orders.min.js
jQuery(function(e){if("undefined"==typeof wc_orders_params)return!1;var o=function(){e(document).on("click",[".post-type-shop_order .wp-list-table tbody td:not(.check-column)",".post-type-shop_order .wp-list-table tbody th:not(.check-column)",".woocommerce_page_wc-orders .wp-list-table.orders tbody td:not(.check-column)",".woocommerce_page_wc-orders .wp-list-table.orders tbody th:not(.check-column)"].join(", "),this.onRowClick).on("click",".order-preview:not(.disabled)",this.onPreview)};o.prototype.onRowClick=function(o){if(e(o.target).filter("a, a *, .no-link, .no-link *, button, button *").length)return!0;if(window.getSelection&&window.getSelection().toString().length)return!0;var t=e(this).closest("tr").find("a.order-view").attr("href");t&&t.length&&(o.preventDefault(),o.metaKey||o.ctrlKey?window.open(t,"_blank"):window.location=t)},o.prototype.onPreview=function(){var o=e(this),t=o.data("orderId");return o.data("order-data")?e(this).WCBackboneModal({template:"wc-modal-view-order",variable:o.data("orderData")}):(o.addClass("disabled"),e.ajax({url:wc_orders_params.ajax_url,data:{order_id:t,action:"woocommerce_get_order_details",security:wc_orders_params.preview_nonce},type:"GET",success:function(t){e(".order-preview").removeClass("disabled"),t.success&&(o.data("orderData",t.data),e(this).WCBackboneModal({template:"wc-modal-view-order",variable:t.data}))}})),!1},new o});