From 7a02abe0a2f6f6b1c4e30a4833e2bc53a0fad4bf Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 17 Dec 2024 15:30:20 -0600 Subject: Trigger 'change' event on resetting value(s) to default. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index 519b8b2..ebacce2 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -313,14 +313,17 @@ $("#btn-reset-file-separator").on("click", (event) => { event.preventDefault(); $("#txt-file-separator").val("\t"); + $("#txt-file-separator").trigger("change"); }); $("#btn-reset-file-comment-character").on("click", (event) => { event.preventDefault(); $("#txt-file-comment-character").val("#"); + $("#txt-file-comment-character").trigger("change"); }); $("#btn-reset-file-na").on("click", (event) => { event.preventDefault(); $("#txt-file-na").val("- NA N/A"); + $("#txt-file-na").trigger("change"); }); var update_preview = (table, filedata, formdata) => { -- cgit v1.2.3