From 5fab8f0cf270e03ba3a58a004f54c1c070735a1c 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 --- 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.20.1