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

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

In the existing code, the 'Clear search' button would hide
itself after clearing anything typed at the search <input>.

This patch adjusts the JavaScript logic so that when the
page first loads and the search <input> is empty, the
'Clear search' button will not be displayed at all.

The 'X' (Clear search) button will only appear once the
user has typed something in the search <input> area.

Test plan:

1) Apply the patch.
2) Do a hard refresh (CTRL+F5) on the OPAC main page to
   reload all JS assets.
3) Notice that the 'Clear search' button is not displayed.
4) Try to search for something -> the button appears!
5) Use the 'X' button to clear your search -> the search
   terms are cleared and the 'X' button hides itself!

-- 
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