403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.153
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/yeslicense.org/wp-content/plugins/woo-wallet/build/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/yeslicense.org/wp-content/plugins/woo-wallet/build/admin/order.js
jQuery((function(e){var o={init:function(){woo_wallet_admin_order_param.is_refundable&&(e(".refund-actions .do-manual-refund").before('<button type="button" class="button button-primary do-wallet-refund">'+woo_wallet_admin_order_param.i18n.refund+' <span class="wc-order-refund-amount">'+woo_wallet_admin_order_param.default_price+"</span> "+woo_wallet_admin_order_param.i18n.via_wallet+"</button>"),e("#woocommerce-order-items").on("click",".refund-actions .do-wallet-refund",this.do_wallet_refund)),e(".refund-partial-payment").on("click",this.do_refund_partial_payment_amount)},do_refund_partial_payment_amount:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_do_refund)){o.block();var t={action:"woo_wallet_refund_partial_payment",order_id:woocommerce_admin_meta_boxes.post_id};e.post(woocommerce_admin_meta_boxes.ajax_url,t,(function(e){!0===e.success&&(o.reload_items(),window.location.href=window.location.href)}))}},do_wallet_refund:function(){if(o.block(),window.confirm(woocommerce_admin_meta_boxes.i18n_do_refund)){var t=e("input#refund_amount").val(),n=e("input#refund_reason").val(),r=e("input#refunded_amount").val(),a={},i={},d={};e(".refund input.refund_order_item_qty").each((function(o,t){e(t).closest("tr").data("order_item_id")&&t.value&&(a[e(t).closest("tr").data("order_item_id")]=t.value)})),e(".refund input.refund_line_total").each((function(o,t){e(t).closest("tr").data("order_item_id")&&(i[e(t).closest("tr").data("order_item_id")]=accounting.unformat(t.value,woocommerce_admin.mon_decimal_point))})),e(".refund input.refund_line_tax").each((function(o,t){if(e(t).closest("tr").data("order_item_id")){var n=e(t).data("tax_id");d[e(t).closest("tr").data("order_item_id")]||(d[e(t).closest("tr").data("order_item_id")]={}),d[e(t).closest("tr").data("order_item_id")][n]=accounting.unformat(t.value,woocommerce_admin.mon_decimal_point)}}));var _={action:"woo_wallet_order_refund",order_id:woocommerce_admin_meta_boxes.post_id,refund_amount:t,refunded_amount:r,refund_reason:n,line_item_qtys:JSON.stringify(a,null,""),line_item_totals:JSON.stringify(i,null,""),line_item_tax_totals:JSON.stringify(d,null,""),api_refund:e(this).is(".do-api-refund"),restock_refunded_items:e("#restock_refunded_items:checked").length?"true":"false",security:woocommerce_admin_meta_boxes.order_item_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,_,(function(e){!0===e.success?(o.reload_items(),"fully_refunded"===e.data.status&&(window.location.href=window.location.href)):(window.alert(e.data.error),o.unblock())}))}else o.unblock()},block:function(){e("#woocommerce-order-items").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){e("#woocommerce-order-items").unblock()},reload_items:function(){var t={order_id:woocommerce_admin_meta_boxes.post_id,action:"woocommerce_load_order_items",security:woocommerce_admin_meta_boxes.order_item_nonce};o.block(),e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:t,type:"POST",success:function(t){e("#woocommerce-order-items").find(".inside").empty(),e("#woocommerce-order-items").find(".inside").append(t),o.init_tiptip(),o.unblock(),o.init()}})},init_tiptip:function(){e("#tiptip_holder").removeAttr("style"),e("#tiptip_arrow").removeAttr("style"),e(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}};o.init()}));

Youez - 2016 - github.com/yon3zu
LinuXploit