| 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 |
|