PluginProbe
Welcart e-Commerce / 2.11.31
Welcart e-Commerce v2.11.31
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / js / member_common.js

member_common.js in Welcart e-Commerce 2.11.31, at js/member_common.js

23 lines 671 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Member page JavaScript
2
3 let memberOrderHistory = {
4 onChangeFilter : function (inputEle){
5 const cfilters = JSON.stringify(
6 {
7 ord_ex_cancel: jQuery("#ord_exclude_cancel").is(":checked") ? "on" : "off",
8 usces_purdate: jQuery("#usces_purdate option:selected").attr("cvalue")
9 }
10 );
11
12 this.setCookie("usces_front", cfilters, 7);
13 inputEle.disabled = true;
14 location.href = inputEle.value;
15 },
16 setCookie: function (cname, cvalue, exdays) {
17 const d = new Date();
18 d.setTime(d.getTime() + (exdays*86400000));
19 let expires = "expires="+ d.toUTCString();
20 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
21 }
22 };
23