From 7ce43660803fc1824d941c2b8c67e5b8a6391a97 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 28 Sep 2021 15:24:48 +1300 Subject: [PATCH] Bug 14242: (follow-up) Hide autofil when syspref disabled, clear ISBN --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/js/autofill.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 85e777619eb..3cd9cac938e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -496,7 +496,7 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] -[% IF ( Koha.Preference("OPACSuggestionAutoFill") ) %] +[% IF ( Koha.Preference("OPACSuggestionAutoFill") != 'no' ) %] [% Asset.js("js/autofill.js") | $raw %] [% END %] [% INCLUDE 'datatables.inc' %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js index 1263d3dde8e..b9385ce9a2b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js @@ -63,6 +63,7 @@ //field.$target.val(""); field.$target.trigger('autofill-undo'); } + $("#isbn").val(""); self.$undo.hide(); }); -- 2.11.0