1(function ($, $window, $document) { 2 3 4 $(document).ready(function () { 5 6 $('.view_order_button').click(function () { 7 $('.view_order_button').removeClass('btn-disable'); 8 9 getOrderDetail($(this).attr('orderid')); 10 11 $(this).addClass('btn-disable'); 12 13 }); 14 15 16 17 18 }); 19 20 const txtlist = { 21 '_billing_first_name':'à¸à¸·à¹à¸à¸à¸¹à¹à¸ªà¸±à¹à¸à¸ªà¸´à¸à¸à¹à¸²', 22 '_billing_phone':'à¹à¸à¸à¸£à¹à¹à¸à¸£à¸¨à¸±à¸à¸à¹', 23 '_billing_lineid':'Line ID', 24 '_billing_email':'à¸à¸µà¹à¸¡à¸¥à¹', 25 '_billing_consignee':'à¸à¸·à¹à¸à¸à¸¹à¹à¸£à¸±à¸à¸ªà¸´à¸à¸à¹à¸²', 26 '_billing_consignee_phone':'à¹à¸à¸à¸£à¹à¹à¸à¸£à¸à¸¹à¹à¸£à¸±à¸', 27 '_billing_consignee_location_dum':'à¹à¸à¸à¸à¸µà¹à¸à¸±à¸à¸ªà¹à¸', 28 '_billing_consignee_address':'สà¸à¸²à¸à¸à¸µà¹à¸à¸±à¸à¸ªà¹à¸à¸ªà¸´à¸à¸à¹à¸²à¹à¸à¸¢à¸¥à¸°à¹à¸à¸µà¸¢à¸', 29 '_billing_dalidate':'วัà¸à¸à¸µà¹à¸à¸±à¸à¸ªà¹à¸', 30 '_billing_dalitime':'à¹à¸§à¸¥à¸²à¸à¸µà¹à¸à¸±à¸à¸ªà¹à¸', 31 '_billing_product_option':'รายละà¹à¸à¸µà¸¢à¸à¸à¸à¸à¸ªà¸´à¸à¸à¹à¸²à¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£', 32 '_billing_card_txt':'à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸µà¸¢à¸à¹à¸à¸', 33 '_billing_recipt_address':'à¸à¸µà¹à¸à¸¢à¸¹à¹à¹à¸à¹à¸ªà¸£à¹à¸', 34 '_billing_taxid':'à¹à¸¥à¸à¸à¸£à¸°à¸à¸³à¸à¸±à¸§à¸à¸¹à¹à¹à¸ªà¸µà¸¢à¸ าษี', 35 '_billing_invoice':'à¹à¸à¹à¸ªà¸£à¹à¸', 36 '_order_total':'รวมราà¸à¸²' 37 38 }; 39 40 function getOrderDetail(orderid) { 41 42 $.ajax({ 43 type: 'POST', 44 url: darkxee.callurl, 45 data: { 46 'action': 'getorder', 47 'orderid': orderid, 48 }, 49 success: function (data) { 50 data = JSON.parse(data); 51 // console.log(data); 52 53 var listOption = '<tr class="order-detail"><td colspan="6"><ul>'; 54 55 $.each(data, function (i, order) { 56 if (order.meta_value != '') { 57 listOption += `<li> ${__t(order.meta_key)} : ${order.meta_value} </li>`; 58 } 59 60 }); 61 listOption += '</ul></td></tr>'; 62 $('.order-detail ,.product-detail').remove(); 63 $(listOption).insertAfter($('#row-' + orderid)).hide(); 64 65 66 $.ajax({ 67 type: 'POST', 68 url: darkxee.callurl, 69 data: { 70 'action': 'getProduct', 71 'orderid': orderid, 72 }, 73 success: function (data2) { 74 // console.log(data2); 75 data2 = JSON.parse(data2); 76 console.log(data2); 77 var listProduct = '<tr class="product-detail"><td colspan="6"><ul>'; 78 79 $.each(data2, function (i, orderProduct) { 80 81 listProduct += "<li><a href='"+orderProduct.url+"'>สิà¸à¸à¹à¸² : "+orderProduct.name+" : ( ราà¸à¸² : "+orderProduct.total+") <div>"+orderProduct.img+"</div></li>"; 82 }); 83 listProduct += '</ul></td></tr>'; 84 $(listProduct).insertAfter($('#row-' + orderid)).hide(); 85 86 $('.order-detail ,.product-detail').fadeIn(); 87 88 89 90 } 91 92 }); 93 94 95 } 96 97 }); 98 99 100 } 101 102 103 //translate function 104 function __t(txt) { 105 if (txt in txtlist) { 106 return txtlist[txt]; 107 } else { 108 return txt; 109 } 110 111 } 112 113})(jQuery, jQuery(window), jQuery(document));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.