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