From 2c15b8b313c334d5a49067119397f36300a881f1 Mon Sep 17 00:00:00 2001 From: Bertrand Boutillier Date: Fri, 12 Oct 2018 10:24:44 +0200 Subject: [PATCH] =?UTF-8?q?correction=20du=20scope=20des=20events=20pour?= =?UTF-8?q?=20fonctionnement=20correct=20apr=C3=A8s=20refresh=20ajax=20de?= =?UTF-8?q?=20la=20colonne=20lat=C3=A9rale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/js/module/formsScripts/medGeATCD.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/js/module/formsScripts/medGeATCD.js b/public_html/js/module/formsScripts/medGeATCD.js index 8c20292..1a24ea3 100644 --- a/public_html/js/module/formsScripts/medGeATCD.js +++ b/public_html/js/module/formsScripts/medGeATCD.js @@ -35,7 +35,7 @@ $(document).ready(function() { $('#id_imc_id').val(imc); } - $("#id_poids_id , #id_taillePatient_id").on("keyup", function() { + $("#patientLatCol").on("keyup", "#id_poids_id , #id_taillePatient_id", function() { poids = $('#id_poids_id').val(); taille = $('#id_taillePatient_id').val(); imc = imcCalc(poids, taille); @@ -52,7 +52,7 @@ $(document).ready(function() { auto_grow(this); }); - $("#formName_medGeATCD textarea").on("keyup", function() { + $("#patientLatCol").on("keyup", "#formName_medGeATCD textarea", function() { $(this).css("overflow", "auto"); }); @@ -60,7 +60,7 @@ $(document).ready(function() { ///////// Gestion Allergies // ajout Allergies - $("button.getAllergiesPanel").on("click", function(e) { + $("#patientLatCol").on("click", "button.getAllergiesPanel", function(e) { e.preventDefault(); $('#texteRechercheAllergie').attr('data-parentid', $(this).attr('data-parentid')); }); @@ -129,7 +129,7 @@ $(document).ready(function() { }); // retirer allergie - $("#latForm").on("click", "button.removeAllergie", function(e) { + $("#patientLatCol").on("click", "button.removeAllergie", function(e) { e.preventDefault(); origin = $(this); objetid = $(this).attr('data-objetid');