correction affichage étape et logo poche et tubes
This commit is contained in:
parent
84f7fd320e
commit
5875b6134f
|
@ -9,7 +9,6 @@
|
|||
import 'jquery';
|
||||
// start the Stimulus application
|
||||
import GetEvent from './js/getCodeBarre';
|
||||
import './bootstrap';
|
||||
|
||||
$(document).ready(()=>{
|
||||
setTimeout(()=>{
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
import { startStimulusApp } from '@symfony/stimulus-bridge';
|
||||
|
||||
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
|
||||
export const app = startStimulusApp(require.context(
|
||||
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
|
||||
true,
|
||||
/\.[jt]sx?$/
|
||||
));
|
||||
|
||||
// register any custom, 3rd party controllers here
|
||||
// app.register('some_controller_name', SomeImportedController);
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"controllers": [],
|
||||
"entrypoints": []
|
||||
}
|
|
@ -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();
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@
|
|||
"app": {
|
||||
"js": [
|
||||
"/build/runtime.js",
|
||||
"/build/vendors-node_modules_symfony_stimulus-bridge_dist_index_js-node_modules_core-js_modules_es_da-7a184a.js",
|
||||
"/build/vendors-node_modules_core-js_modules_es_array_for-each_js-node_modules_core-js_modules_es_arr-9c7bdc.js",
|
||||
"/build/app.js"
|
||||
]
|
||||
},
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
"build/frontStyle.css": "/build/frontStyle.css",
|
||||
"build/frontStyle.js": "/build/frontStyle.js",
|
||||
"build/runtime.js": "/build/runtime.js",
|
||||
"build/vendors-node_modules_symfony_stimulus-bridge_dist_index_js-node_modules_core-js_modules_es_da-7a184a.js": "/build/vendors-node_modules_symfony_stimulus-bridge_dist_index_js-node_modules_core-js_modules_es_da-7a184a.js"
|
||||
"build/vendors-node_modules_core-js_modules_es_array_for-each_js-node_modules_core-js_modules_es_arr-9c7bdc.js": "/build/vendors-node_modules_core-js_modules_es_array_for-each_js-node_modules_core-js_modules_es_arr-9c7bdc.js"
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@ Encore
|
|||
|
||||
|
||||
// enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)
|
||||
.enableStimulusBridge('./assets/controllers.json')
|
||||
// .enableStimulusBridge('./assets/controllers.json')
|
||||
|
||||
// When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
|
||||
.splitEntryChunks()
|
||||
|
|
Loading…
Reference in New Issue