correction affichage étape et logo poche et tubes

This commit is contained in:
2023-05-24 18:15:23 +02:00
parent 84f7fd320e
commit 5875b6134f
10 changed files with 94 additions and 17438 deletions

View File

@ -60,8 +60,6 @@ export default class GetEvent{
}
if(response.data.status == 'init'){
$pictureTube.css('display', 'none');
$picturePoche.css('display', 'none');
let pochesImg = $('.sang');
[...pochesImg].forEach(sang=>{
sang.remove();
@ -114,14 +112,14 @@ export default class GetEvent{
}
case '2':
if(response.data.status == 'success'){
console.log('step 2 success !!')
$typePoche.html(response.data.nbre_poche)
$current.html(response.data.nbre_poche)
console.log(response.data.nbre_poche)
$type.html('Poches');
$todo.html(response.data.nbre_poche_max)
$input.attr('max', response.data.nbre_poche_max)
$input.attr('value', response.data.nbre_poche)
if(response.data.nbre_poche !=response.data.nbre_poche_max ){
if(response.data.nbre_poche !=response.data.nbre_poche_max && response.data.nbre_poche != 0){
$picturePoche.append('<div class="sang"><img src="/poches/Poche_sang2.png"></div>')
}
saisie.focus();