diff --git a/javascript/gestion_listes_blocks.js.html b/javascript/gestion_listes_blocks.js.html index e5f3e3e3b8cc038efe0a1d0adce7eebaadd7aa0d..efde6d2a06f30d95b3a2cebe9b24c5928c3fcf5b 100644 --- a/javascript/gestion_listes_blocks.js.html +++ b/javascript/gestion_listes_blocks.js.html @@ -72,15 +72,15 @@ function gestion_boutons_blocks() { // édition en place des blocs $('.objet_blocks .actions .editer_block').off('click').on('click', function(e) { e.preventDefault(); - var id_block = $(this).data('id_block'); + const id_block = $(this).data('id_block'); ajaxReload('block_' + id_block, {args: {edit_bloc: 1}}); }); // boutons "Annuler" $('.formulaire_editer_block button[name="annuler"]').off('click').on('click', function(e) { e.preventDefault(); - var id_block = $(this).data('id_block'); - var ajaxArgs = {}; + const id_block = $(this).data('id_block'); + const ajaxArgs = {}; if(id_block !== 'new') { ajaxArgs.args = {edit_bloc: ''}; }