From 4b85a35a9d4429f8ee35c6328a728a08775f042d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 3 Sep 2020 16:10:29 +0200 Subject: [PATCH] Fix double consumptions --- note_kfet/static/js/consos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/note_kfet/static/js/consos.js b/note_kfet/static/js/consos.js index ec5a0940..25e8113e 100644 --- a/note_kfet/static/js/consos.js +++ b/note_kfet/static/js/consos.js @@ -27,7 +27,7 @@ $(document).ready(function() { }); // Switching in double consumptions mode should update the layout - $("#double_conso").click(function() { + $("#double_conso").change(function() { $("#consos_list_div").removeClass('d-none'); $("#user_select_div").attr('class', 'col-xl-4'); $("#infos_div").attr('class', 'col-sm-5 col-xl-6'); @@ -47,7 +47,7 @@ $(document).ready(function() { } }); - $("#single_conso").click(function() { + $("#single_conso").change(function() { $("#consos_list_div").addClass('d-none'); $("#user_select_div").attr('class', 'col-xl-7'); $("#infos_div").attr('class', 'col-sm-5 col-md-4');