fds
This commit is contained in:
parent
fc7b06dedd
commit
3703920dfd
|
|
@ -89260,31 +89260,33 @@ function tester_disponibiliter_whatsapp() {
|
|||
}
|
||||
|
||||
|
||||
function parametre_produit()
|
||||
{
|
||||
var codeProduit = $('#codeProduit').val();
|
||||
|
||||
if(codeProduit<=" "){
|
||||
$('#div_parametres').html("");
|
||||
}
|
||||
|
||||
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>');
|
||||
function parametre_produit() {
|
||||
var codeProduit = $('#codeProduit').val();
|
||||
var racineWeb = $("#racineWeb").val();
|
||||
|
||||
if (codeProduit <= " ") {
|
||||
$('#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;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxparametreproduitgarant/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData){
|
||||
//alert("Erreur : "+errorData);
|
||||
},
|
||||
success: function(data) {
|
||||
$('#div_parametres').html(data);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
// Loader Standard
|
||||
$("#div_parametres").html(
|
||||
'<div class="d-flex justify-content-center align-items-center p-5">' +
|
||||
'<div class="spinner-border text-primary" role="status" style="width: 3rem; height: 3rem;"></div>' +
|
||||
'<span class="ms-3 fw-bold text-primary">Chargement...</span></div>'
|
||||
);
|
||||
|
||||
$.ajax({
|
||||
url: racineWeb + "Ajaxparametreproduitgarant/",
|
||||
type: 'post',
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user