Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
32 righe
1.1 KiB
32 righe
1.1 KiB
function presentaDomanda(id_bando) { |
|
Swal.fire({ |
|
title: "Attenzione", |
|
text: "Sei sicuro di voler proseguire con l'operazione selezionata?", |
|
icon: 'warning', |
|
showCancelButton: true, |
|
confirmButtonColor: '#3085d6', |
|
cancelButtonColor: '#d33', |
|
confirmButtonText: 'OK' |
|
}).then((result) => { |
|
if (result.value) { |
|
$('#loader').show(); |
|
postdataClassic(WS_CALL + "?module=domanda&action=saveDomanda", {bando: id_bando}, function (response) { |
|
$('#loader').hide(); |
|
console.log(response); |
|
var risp = jQuery.parseJSON(response); |
|
if (risp.esito === 1) { |
|
functionSwall('success', 'Presentazione effettuata correttamente. Riceverai a breve un\'email di conferma, con i dati riepilogativi.', ''); |
|
} else { |
|
functionSwall("error", ""); |
|
} |
|
}); |
|
} |
|
}); |
|
} |
|
|
|
function goToDomanda(id_domanda) { |
|
var object = { |
|
domanda: id_domanda |
|
}; |
|
$.redirect("domanda.php", object); |
|
} |