mirror of https://gitlab.crans.org/bde/nk20
Clear and hide tooltips when the conso/transfer page is cleared
This commit is contained in:
parent
2672721235
commit
26775aa561
|
@ -157,6 +157,7 @@ function reset() {
|
||||||
$("#note_list").html("");
|
$("#note_list").html("");
|
||||||
$("#consos_list").html("");
|
$("#consos_list").html("");
|
||||||
$("#user_note").text("");
|
$("#user_note").text("");
|
||||||
|
$("#user_note").attr("data-original-title", "").tooltip("hide");
|
||||||
$("#profile_pic").attr("src", "/media/pic/default.png");
|
$("#profile_pic").attr("src", "/media/pic/default.png");
|
||||||
$("#profile_pic_link").attr("href", "#");
|
$("#profile_pic_link").attr("href", "#");
|
||||||
refreshHistory();
|
refreshHistory();
|
||||||
|
|
|
@ -22,10 +22,12 @@ function reset(refresh=true) {
|
||||||
event.originalEvent = {charCode: 97};
|
event.originalEvent = {charCode: 97};
|
||||||
source_field.trigger(event);
|
source_field.trigger(event);
|
||||||
source_field.removeClass('is-invalid');
|
source_field.removeClass('is-invalid');
|
||||||
|
source_field.attr("data-original-title", "").tooltip("hide");
|
||||||
let dest_field = $("#dest_note");
|
let dest_field = $("#dest_note");
|
||||||
dest_field.val("");
|
dest_field.val("");
|
||||||
dest_field.trigger(event);
|
dest_field.trigger(event);
|
||||||
dest_field.removeClass('is-invalid');
|
dest_field.removeClass('is-invalid');
|
||||||
|
dest_field.attr("data-original-title", "").tooltip("hide");
|
||||||
let amount_field = $("#amount");
|
let amount_field = $("#amount");
|
||||||
amount_field.val("");
|
amount_field.val("");
|
||||||
amount_field.removeClass('is-invalid');
|
amount_field.removeClass('is-invalid');
|
||||||
|
|
Loading…
Reference in New Issue