Bug 14242: (follow-up) Hide autofil when syspref disabled, clear ISBN

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Aleisha Amohia 2021-09-28 15:24:48 +13:00 committed by Fridolin Somers
parent 9660b61158
commit bc89b1d6fd
2 changed files with 2 additions and 1 deletions

View File

@ -497,7 +497,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' %]

View File

@ -63,6 +63,7 @@
//field.$target.val("");
field.$target.trigger('autofill-undo');
}
$("#isbn").val("");
self.$undo.hide();
});