Clear and hide tooltips when the conso/transfer page is cleared

This commit is contained in:
Yohann D'ANELLO 2020-08-21 21:00:46 +02:00
parent 2672721235
commit 26775aa561
2 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,7 @@ function reset() {
$("#note_list").html("");
$("#consos_list").html("");
$("#user_note").text("");
$("#user_note").attr("data-original-title", "").tooltip("hide");
$("#profile_pic").attr("src", "/media/pic/default.png");
$("#profile_pic_link").attr("href", "#");
refreshHistory();

View File

@ -22,10 +22,12 @@ function reset(refresh=true) {
event.originalEvent = {charCode: 97};
source_field.trigger(event);
source_field.removeClass('is-invalid');
source_field.attr("data-original-title", "").tooltip("hide");
let dest_field = $("#dest_note");
dest_field.val("");
dest_field.trigger(event);
dest_field.removeClass('is-invalid');
dest_field.attr("data-original-title", "").tooltip("hide");
let amount_field = $("#amount");
amount_field.val("");
amount_field.removeClass('is-invalid');