1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 15:32:22 +00:00

Fix transfer form reset

This commit is contained in:
Yohann D'ANELLO 2020-08-01 23:03:10 +02:00
parent c0cdb13130
commit 5ccbad8359

View File

@ -16,11 +16,13 @@ function reset(refresh=true) {
$("#dest_note_list").html("");
let source_field = $("#source_note");
source_field.val("");
source_field.trigger("keyup");
let event = jQuery.Event("keyup");
event.originalEvent = {charCode: 97};
source_field.trigger(event);
source_field.removeClass('is-invalid');
let dest_field = $("#dest_note");
dest_field.val("");
dest_field.trigger("keyup");
dest_field.trigger(event);
dest_field.removeClass('is-invalid');
let amount_field = $("#amount");
amount_field.val("");