93 lines
2.9 KiB
JavaScript
93 lines
2.9 KiB
JavaScript
/**************************************************/
|
|
/**************************************************/
|
|
/* popup login ebay*/
|
|
/**************************************************/
|
|
/**************************************************/
|
|
function popupLoginEbay() {
|
|
theAction = webApp + "/admin/ebay/EbayAccess.abl?cmd=callEbayLogin";
|
|
wEbay = window.open(theAction, "Ebay_Logine", "width=930,height=600,status=yes,resizable=yes,top=100,left=100,scrollbars=yes");
|
|
wEbay.focus();
|
|
|
|
|
|
}
|
|
|
|
function callEbayLogin() {
|
|
|
|
Swal.fire({
|
|
title: "Login Ebay AuthNAuth",
|
|
text: "Se premi OK verrai indirizzato sul login ebay. Effettua il login con le tue credenziali e conferma di fornire l'accesso della applicazione Ablia ai tuoi dati su Ebay.\nVuoi Continuare?",
|
|
icon: "warning",
|
|
showDenyButton: true,
|
|
showCancelButton: false,
|
|
confirmButtonText: `Si`,
|
|
denyButtonText: `No`,
|
|
cancelButtonText: `Annulla`,
|
|
}).then((result) => {
|
|
/* Read more about isConfirmed, isDenied below */
|
|
if (result.isConfirmed) {
|
|
////////////////////////////////////////////////////////////////////
|
|
$("#callEbayBtn").attr("disabled", "disabled");
|
|
$("#callEbayBtn").attr("href", "#");
|
|
$("body").addClass("loading");
|
|
var f = document.menu;
|
|
f.action = "../ebay/EbayAccess.abl";
|
|
f.cmd.value = "callEbayLogin";
|
|
f.act.value = "";
|
|
f.submit();
|
|
////////////////////////////////////////////////////////////////////
|
|
} else if (result.isDenied) {
|
|
//Swal.fire('Changes are not saved', '', 'info')
|
|
}
|
|
})
|
|
|
|
|
|
//Ab.submitAj("menu");
|
|
}
|
|
|
|
|
|
function callEbayLoginOAuth() {
|
|
Swal.fire({
|
|
title: "Login Ebay oAuth2",
|
|
text: "Se premi OK verrai indirizzato sul login ebay. Effettua il login con le tue credenziali e conferma di fornire l'accesso della applicazione Ablia ai tuoi dati su Ebay.\nVuoi Continuare?",
|
|
icon: "warning",
|
|
showDenyButton: true,
|
|
showCancelButton: false,
|
|
confirmButtonText: `Si`,
|
|
denyButtonText: `No`,
|
|
cancelButtonText: `Annulla`,
|
|
}).then((result) => {
|
|
/* Read more about isConfirmed, isDenied below */
|
|
if (result.isConfirmed) {
|
|
////////////////////////////////////////////////////////////////////
|
|
$("#callEbayBtn").attr("disabled", "disabled");
|
|
$("#callEbayBtn").attr("href", "#");
|
|
$("body").addClass("loading");
|
|
var f = document.menu;
|
|
f.action = "../ebay/EbayAccess.abl";
|
|
f.cmd.value = "callEbayLoginO";
|
|
f.act.value = "";
|
|
f.submit();
|
|
////////////////////////////////////////////////////////////////////
|
|
} else if (result.isDenied) {
|
|
//Swal.fire('Changes are not saved', '', 'info')
|
|
}
|
|
})
|
|
|
|
|
|
//Ab.submitAj("menu");
|
|
}
|
|
|
|
|
|
function closeEbayWindow() {
|
|
|
|
// self.opener.document[nomeModulo][nomeCampo].select();
|
|
setTimeout(function () {
|
|
{
|
|
//Ab.setFocus("dataFatturazione");
|
|
window.close();
|
|
}
|
|
|
|
}, 5000);
|
|
|
|
|
|
}
|