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() { ...@@ -72,15 +72,15 @@ function gestion_boutons_blocks() {
// édition en place des blocs // édition en place des blocs
$('.objet_blocks .actions .editer_block').off('click').on('click', function(e) { $('.objet_blocks .actions .editer_block').off('click').on('click', function(e) {
e.preventDefault(); e.preventDefault();
var id_block = $(this).data('id_block'); const id_block = $(this).data('id_block');
ajaxReload('block_' + id_block, {args: {edit_bloc: 1}}); ajaxReload('block_' + id_block, {args: {edit_bloc: 1}});
}); });
// boutons "Annuler" // boutons "Annuler"
$('.formulaire_editer_block button[name="annuler"]').off('click').on('click', function(e) { $('.formulaire_editer_block button[name="annuler"]').off('click').on('click', function(e) {
e.preventDefault(); e.preventDefault();
var id_block = $(this).data('id_block'); const id_block = $(this).data('id_block');
var ajaxArgs = {}; const ajaxArgs = {};
if(id_block !== 'new') { if(id_block !== 'new') {
ajaxArgs.args = {edit_bloc: ''}; ajaxArgs.args = {edit_bloc: ''};
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter