PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | assets/Print.js +1 -1 1.3.26 → 1.6.5 View file →
@@ -1 +1 @@
1 -document.getElementById("print-button").addEventListener("click",()=>{let e=t("FluentCart Receipt");e&&document.getElementById("fct-order-invoice-no")&&(e=t("Receipt Number")+": "+document.getElementById("fct-order-invoice-no").innerText),document.querySelector(".fct-email-template-content"),document.querySelector(".fct-email-template-content-inner"),printThis(document.getElementById("receipt"),{debug:!1,importCSS:!0,printContainer:!0,pageTitle:e,removeInline:!1,printDelay:100,beforePrint:function(){console.log("About to print...")},afterPrint:function(){console.log("Print completed!")}});function t(n){var o;return(((o=window.fct_receipt_data)==null?void 0:o.translations)||{})[n]||n}});window.addEventListener("DOMContentLoaded",function(){if(new URLSearchParams(window.location.search).get("download")==="1"){const t=document.getElementById("print-button");t&&t.click()}});
1 +document.getElementById("print-button").addEventListener("click",()=>{let t=e("FluentCart Receipt");t&&document.getElementById("fct-order-invoice-no")&&(t=e("Receipt Number")+": "+document.getElementById("fct-order-invoice-no").innerText),document.querySelector(".fct-email-template-content"),document.querySelector(".fct-email-template-content-inner"),printThis(document.getElementById("receipt"),{debug:!1,importCSS:!0,printContainer:!0,pageTitle:t,removeInline:!1,printDelay:100,beforePrint:function(){},afterPrint:function(){}});function e(n){var i;return(((i=window.fct_receipt_data)==null?void 0:i.translations)||{})[n]||n}});window.addEventListener("DOMContentLoaded",function(){if(new URLSearchParams(window.location.search).get("download")==="1"){const e=document.getElementById("print-button");e&&e.click()}});