From ef1e805538aa64f2be51ac9a63dcbd1c5df3c6c2 Mon Sep 17 00:00:00 2001
From: Yohann D'ANELLO <yohann.danello@gmail.com>
Date: Sun, 30 Aug 2020 15:18:34 +0200
Subject: [PATCH] Clear note selector once a consumption is performed

---
 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 1dbf4641..cdd7e964 100644
--- a/note_kfet/static/js/consos.js
+++ b/note_kfet/static/js/consos.js
@@ -156,8 +156,8 @@ function reset() {
     buttons.length = 0;
     $("#note_list").html("");
     $("#consos_list").html("");
-    $("#user_note").text("");
-    $("#user_note").attr("data-original-title", "").tooltip("hide");
+    $("#note").val("");
+    $("#note").attr("data-original-title", "").tooltip("hide");
     $("#profile_pic").attr("src", "/media/pic/default.png");
     $("#profile_pic_link").attr("href", "#");
     refreshHistory();
-- 
GitLab