fds
This commit is contained in:
parent
fc7b06dedd
commit
3703920dfd
|
|
@ -89260,31 +89260,33 @@ function tester_disponibiliter_whatsapp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function parametre_produit()
|
function parametre_produit() {
|
||||||
{
|
var codeProduit = $('#codeProduit').val();
|
||||||
var codeProduit = $('#codeProduit').val();
|
var racineWeb = $("#racineWeb").val();
|
||||||
|
|
||||||
if(codeProduit<=" "){
|
if (codeProduit <= " ") {
|
||||||
$('#div_parametres').html("");
|
$('#div_parametres').html('<div class="text-center p-5 text-muted opacity-50"><i class="fas fa-hand-pointer fa-3x mb-3"></i><p>Veuillez sélectionner un produit.</p></div>');
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
donnees = 'codeProduit='+codeProduit;
|
|
||||||
|
|
||||||
$("#div_parametres").html('<div style="padding-top:80px; text-align:center; font-size:14px; color: #0088cf; "><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
|
||||||
|
|
||||||
$.ajax({
|
// Loader Standard
|
||||||
url: $("#racineWeb").val()+"Ajaxparametreproduitgarant/",
|
$("#div_parametres").html(
|
||||||
type : 'post',
|
'<div class="d-flex justify-content-center align-items-center p-5">' +
|
||||||
data: donnees,
|
'<div class="spinner-border text-primary" role="status" style="width: 3rem; height: 3rem;"></div>' +
|
||||||
error: function(errorData){
|
'<span class="ms-3 fw-bold text-primary">Chargement...</span></div>'
|
||||||
//alert("Erreur : "+errorData);
|
);
|
||||||
},
|
|
||||||
success: function(data) {
|
$.ajax({
|
||||||
$('#div_parametres').html(data);
|
url: racineWeb + "Ajaxparametreproduitgarant/",
|
||||||
},
|
type: 'post',
|
||||||
complete: function() {
|
data: { codeProduit: codeProduit },
|
||||||
}
|
success: function(data) {
|
||||||
});
|
$('#div_parametres').hide().html(data).fadeIn();
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
$('#div_parametres').html('<div class="alert alert-danger mx-4">Erreur lors du chargement des paramètres.</div>');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function retour_param_fact_garant()
|
function retour_param_fact_garant()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user