From b4b848c7ab34c6d55b7d6a06af766fde9e5762d9 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 2 Mar 2022 15:21:01 +1300 Subject: [PATCH] Bug 14242: (follow-up) Clear all text input fields Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer --- koha-tmpl/opac-tmpl/bootstrap/js/autofill.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js index b9385ce9a2..830647d52a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js @@ -63,7 +63,9 @@ //field.$target.val(""); field.$target.trigger('autofill-undo'); } - $("#isbn").val(""); + $(":input[type='text']").each(function(){ + $(this).val(""); + }); self.$undo.hide(); }); -- 2.30.2