From 482a04d37c9b4b617eb1fae63cf8350d2a907eb4 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 15 Aug 2020 19:33:30 +0200 Subject: [PATCH] Consumptions didn't get removed properly --- note_kfet/static/js/consos.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/note_kfet/static/js/consos.js b/note_kfet/static/js/consos.js index 8b8e612c..2c5a09b6 100644 --- a/note_kfet/static/js/consos.js +++ b/note_kfet/static/js/consos.js @@ -41,7 +41,7 @@ $(document).ready(function() { $("#conso_button_" + button.id).click(function() { if (LOCK) return; - removeNote(button, "conso_button", buttons,"consos_list"); + removeNote(button, "conso_button", buttons,"consos_list")(); }); }); } @@ -61,7 +61,7 @@ $(document).ready(function() { $("#conso_button_" + button.id).click(function() { if (LOCK) return; - removeNote(button, "conso_button", buttons,"note_list"); + removeNote(button, "conso_button", buttons,"note_list")(); }); }); } @@ -139,7 +139,7 @@ function addConso(dest, amount, type, category_id, category_name, template_id, t $("#conso_button_" + button.id).click(function() { if (LOCK) return; - removeNote(button, "conso_button", buttons, list); + removeNote(button, "conso_button", buttons, list)(); }); }); }