https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33668
--- Comment #39 from Andreas Roussos <[email protected]> --- Created attachment 176819 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176819&action=edit Bug 33668: (follow-up) Ensure the clear button is added to the DOM only once Every time the OPAC search dropdown menu is used to select a specific search type (by keyword/Title/Author/ISBN/etc.), the 'Clear search' button HTML code is re-added to the DOM. This has the side effect of multiple presses of the 'X' button being required in order to hide it. Test plan: 1) Without this patch applied, use the dropdown menu adjacent to the OPAC search box to select a specific search type. Make, for example, 3 changes in a row (because you can't make up your mind). 2) Type something in the search box: notice that the 'X' button appears. Now click on the 'X' button: notice that it doesn't go away immediately, but requires as many clicks as the number of times you selected a search type in step 1. 3) Apply the patch and perform a hard refresh (CTRL+F5) on the OPAC main page to reload all JavaScript assets. 4) Repeat steps 1 and 2 -- this time the 'X' button should hide itself immediately when you first click on it. Signed-off-by: Roman Dolny <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
