WIP: ecommerce
This commit is contained in:
@@ -109,6 +109,12 @@ function blockUI($msg) {
|
||||
function copyToClipboard(text) {
|
||||
navigator.clipboard.writeText(text);
|
||||
}
|
||||
function openDetails(id) {
|
||||
window.open("index.php?module=EcmInvoiceOuts&action=ecommerce&apilo_details="+id, "_blank");
|
||||
function openDetails(id, origin) {
|
||||
window.console.log(origin);
|
||||
if (origin.startsWith('apilo')) {
|
||||
window.open("index.php?module=EcmInvoiceOuts&action=ecommerce&apilo_details="+id, "_blank");
|
||||
} else {
|
||||
window.open("index.php?module=EcmInvoiceOuts&action=ecommerce&baselinker_details="+id, "_blank");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user