Skip to content
Extraits de code Groupes Projets
Valider 39d68563 rédigé par nicod's avatar nicod
Parcourir les fichiers

fix: var -> const

parent 1f70834d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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: ''};
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter