https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33668

--- Comment #38 from Andreas Roussos <[email protected]> ---
Created attachment 176818
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176818&action=edit
Bug 33668: (follow-up) Modify the JS logic behind the 'Clear search' button

When the OPAC main page first loads and the search <input> is
empty, the 'X' (Clear search) button is displayed anyway. This
can potentially cause some UX confusion involving the presence
of an 'X' button inside an otherwise empty search box.

This patch fixes that in a way that doesn't affect the display
of the 'X' button after performing an actual search.

Test plan:

1) Without this patch applied, visit the OPAC main page.
   Notice that even though there's nothing in the search box
   yet, the 'Clear search' button is displayed anyway.

2) Apply this patch / reload all JavaScript assets (CTRL+F5).

3) Notice that the 'Clear search' button is no longer visible
   when the search box is empty.

4) Type something in the search box: notice that the 'X'
   button appears.

5) Use the 'X' button to clear your search: the search
   terms are cleared and the 'X' button hides itself.

6) Perform an actual search and in the results page notice
   that the 'X' button remains visible.

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/

Reply via email to