From e1a7e8db354c6a5d02c5a12491582df994561518 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 d2818713da..b08dd996bf 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -486,7 +486,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 1263d3dde8..b9385ce9a2 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